|
|
@ -92,6 +92,8 @@ class _NotificationsMainPageState extends State<NotificationsMainPage> { |
|
|
|
final accountsBloc = Provider.of<AccountsBloc>(context, listen: false); |
|
|
|
final accountsBloc = Provider.of<AccountsBloc>(context, listen: false); |
|
|
|
await accountsBloc.activeAppsBloc.setActiveApp(app.id); |
|
|
|
await accountsBloc.activeAppsBloc.setActiveApp(app.id); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
final colorScheme = Theme.of(context).colorScheme; |
|
|
|
|
|
|
|
|
|
|
|
await showDialog( |
|
|
|
await showDialog( |
|
|
|
context: context, |
|
|
|
context: context, |
|
|
|
builder: (final context) => AlertDialog( |
|
|
|
builder: (final context) => AlertDialog( |
|
|
@ -99,8 +101,8 @@ class _NotificationsMainPageState extends State<NotificationsMainPage> { |
|
|
|
actions: [ |
|
|
|
actions: [ |
|
|
|
ElevatedButton( |
|
|
|
ElevatedButton( |
|
|
|
style: ElevatedButton.styleFrom( |
|
|
|
style: ElevatedButton.styleFrom( |
|
|
|
backgroundColor: Colors.red, |
|
|
|
backgroundColor: colorScheme.error, |
|
|
|
foregroundColor: Theme.of(context).colorScheme.onPrimary, |
|
|
|
foregroundColor: colorScheme.onError, |
|
|
|
), |
|
|
|
), |
|
|
|
onPressed: () { |
|
|
|
onPressed: () { |
|
|
|
Navigator.of(context).pop(); |
|
|
|
Navigator.of(context).pop(); |
|
|
|