Use icon button for delete on app page (#722)

This commit is contained in:
Imran Remtulla
2023-07-29 22:39:50 -04:00
parent cccde7e135
commit 14755134bf

View File

@@ -431,8 +431,7 @@ class _AppPageState extends State<AppPage> {
? getResetInstallStatusButton() ? getResetInstallStatusButton()
: getInstallOrUpdateButton()), : getInstallOrUpdateButton()),
const SizedBox(width: 16.0), const SizedBox(width: 16.0),
Expanded( IconButton(
child: TextButton(
onPressed: app?.downloadProgress != null onPressed: app?.downloadProgress != null
? null ? null
: () { : () {
@@ -445,13 +444,9 @@ class _AppPageState extends State<AppPage> {
} }
}); });
}, },
style: TextButton.styleFrom( tooltip: tr('remove'),
foregroundColor: icon: const Icon(Icons.delete_outline),
Theme.of(context).colorScheme.error, ),
surfaceTintColor:
Theme.of(context).colorScheme.error),
child: Text(tr('remove')),
)),
])), ])),
if (app?.downloadProgress != null) if (app?.downloadProgress != null)
Padding( Padding(