From cdb921e5041c5f71b64130316aa03836e486723e Mon Sep 17 00:00:00 2001 From: nahnah Date: Sat, 14 Feb 2026 16:15:53 +0000 Subject: [PATCH] [imp]: Add refresh action; move 'Update All' into header --- lib/screens/updates_screen.dart | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/lib/screens/updates_screen.dart b/lib/screens/updates_screen.dart index 98a404e..15eb365 100644 --- a/lib/screens/updates_screen.dart +++ b/lib/screens/updates_screen.dart @@ -151,6 +151,13 @@ class _UpdatesScreenState extends State _tabController.animateTo(index); }, ), + actions: [ + IconButton( + icon: const Icon(Symbols.refresh), + onPressed: _onRefresh, + tooltip: AppLocalizations.of(context)!.refresh, + ), + ], ), body: RefreshIndicator( onRefresh: _onRefresh, @@ -299,19 +306,6 @@ class _UpdatesScreenState extends State } return Scaffold( - floatingActionButton: Column( - mainAxisSize: MainAxisSize.min, - children: [ - FloatingActionButton.extended( - onPressed: () => _updateAllApps(context, updatableApps), - icon: const Icon(Symbols.system_update), - label: const Text('Update All'), - ).animate().scale(duration: 300.ms, curve: Curves.easeOutBack), - settingsProvider.themeStyle == ThemeStyle.florid - ? SizedBox(height: 86) - : SizedBox.shrink(), - ], - ), body: Column( children: [ // Header @@ -329,15 +323,18 @@ class _UpdatesScreenState extends State ), child: Row( children: [ - Icon(Symbols.system_update), - const SizedBox(width: 12), Expanded( child: Text( - '${updatableApps.length} updates available', + '${updatableApps.length} ${updatableApps.length == 1 ? 'update' : 'updates'} available', style: Theme.of(context).textTheme.titleMedium ?.copyWith(fontWeight: FontWeight.w600), ), ), + + TextButton( + onPressed: () => _updateAllApps(context, updatableApps), + child: const Text('Update All'), + ), ], ), ),