From b418b8d5d5c1ef5f3a1bd7d3808c9d8da54c1cce Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Thu, 3 Jul 2025 17:50:49 +0200 Subject: [PATCH] rename addon to extensions and add get button --- .../browser_modules/bottom_app_bar.dart | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart b/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart index fe08951f..80108d96 100644 --- a/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart +++ b/app/lib/features/geckoview/features/browser/presentation/widgets/browser_modules/bottom_app_bar.dart @@ -196,8 +196,8 @@ class BrowserBottomAppBar extends HookConsumerWidget { child: const Text('Settings'), ), Consumer( - builder: (context, ref, child) { - final browserExtensions = ref.watch( + builder: (context, childRef, child) { + final browserExtensions = childRef.watch( webExtensionsStateProvider( WebExtensionActionType.browser, ).select((value) => value.values.toList()), @@ -223,11 +223,22 @@ class BrowserBottomAppBar extends HookConsumerWidget { await addonService.startAddonManagerActivity(); }, leadingIcon: const Icon(MdiIcons.puzzleEdit), - child: const Text('Addon Manager'), + child: const Text('Manage Extension'), + ), + MenuItemButton( + onPressed: () async { + await ref + .read(tabRepositoryProvider.notifier) + .addTab( + url: Uri.parse('https://addons.mozilla.org'), + ); + }, + leadingIcon: const Icon(MdiIcons.puzzlePlus), + child: const Text('Get Extensions'), ), ], leadingIcon: const Icon(MdiIcons.puzzle), - child: const Text('Addons'), + child: const Text('Extensions'), ); }, ),