From 14755134bf36d4df7f34857fc64a841409d82fc9 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 29 Jul 2023 22:39:50 -0400 Subject: [PATCH] Use icon button for delete on app page (#722) --- lib/pages/app.dart | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/pages/app.dart b/lib/pages/app.dart index 4d97d54..0708b02 100644 --- a/lib/pages/app.dart +++ b/lib/pages/app.dart @@ -431,8 +431,7 @@ class _AppPageState extends State { ? getResetInstallStatusButton() : getInstallOrUpdateButton()), const SizedBox(width: 16.0), - Expanded( - child: TextButton( + IconButton( onPressed: app?.downloadProgress != null ? null : () { @@ -445,13 +444,9 @@ class _AppPageState extends State { } }); }, - style: TextButton.styleFrom( - foregroundColor: - Theme.of(context).colorScheme.error, - surfaceTintColor: - Theme.of(context).colorScheme.error), - child: Text(tr('remove')), - )), + tooltip: tr('remove'), + icon: const Icon(Icons.delete_outline), + ), ])), if (app?.downloadProgress != null) Padding(