show most recentyl aded tabs first

This commit is contained in:
Fabian Freund
2024-07-01 18:06:41 +02:00
parent c1d35a1145
commit 188ba75d1a
@@ -40,7 +40,7 @@ class ViewTabsSheet extends HookConsumerWidget {
Consumer( Consumer(
builder: (context, ref, child) { builder: (context, ref, child) {
final tabs = ref.watch( final tabs = ref.watch(
webViewRepositoryProvider.select((tabs) => tabs.values), webViewRepositoryProvider.select((tabs) => tabs.values.toList()),
); );
final activeTab = ref.watch( final activeTab = ref.watch(
webViewTabControllerProvider.select( webViewTabControllerProvider.select(
@@ -56,7 +56,7 @@ class ViewTabsSheet extends HookConsumerWidget {
mainAxisSpacing: 8.0, mainAxisSpacing: 8.0,
crossAxisSpacing: 8.0, crossAxisSpacing: 8.0,
crossAxisCount: 2, crossAxisCount: 2,
children: tabs children: tabs.reversed
.map( .map(
(webView) => WebViewTab( (webView) => WebViewTab(
webView: webView, webView: webView,