Closes #25 : text on "Cancel/Close" button not visible

This commit is contained in:
Yannick Mauray 2021-11-14 23:30:55 +01:00
parent 20c97e1906
commit 2602f36fb8
No known key found for this signature in database
GPG Key ID: 67C4AAC5E99CB909
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ class CancelDismissButton extends StatelessWidget {
ElevatedButton(
style: ElevatedButton.styleFrom(
primary: Theme.of(context).colorScheme.surface,
onPrimary: Theme.of(context).brightness == Brightness.dark ? Colors.white70 : Theme.of(context).colorScheme.primary,
),
onPressed: !downloadFinished
? onCancel