Migrated to Material You

This commit is contained in:
Imran Remtulla
2022-08-20 16:31:52 -04:00
parent 6b43d4ed60
commit ce98c5b2ec
9 changed files with 267 additions and 157 deletions

View File

@@ -38,7 +38,7 @@ class _AppPageState extends State<AppPage> {
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Expanded(
child: OutlinedButton(
child: ElevatedButton(
onPressed: (app?.installedVersion == null ||
appsProvider
.checkAppObjectForUpdate(app!)) &&
@@ -52,7 +52,7 @@ class _AppPageState extends State<AppPage> {
? 'Install'
: 'Update'))),
const SizedBox(width: 16.0),
OutlinedButton(
ElevatedButton(
onPressed: app?.currentDownloadId != null
? null
: () {
@@ -85,7 +85,8 @@ class _AppPageState extends State<AppPage> {
});
},
style: TextButton.styleFrom(
foregroundColor: Theme.of(context).errorColor),
foregroundColor: Theme.of(context).errorColor,
surfaceTintColor: Theme.of(context).errorColor),
child: const Text('Remove'),
),
])),