mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-29 20:43:28 +01:00
Use icon button for delete on app page (#722)
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user