diff --git a/lib/service/notifying.dart b/lib/service/notifying.dart index 4870c2b..4a3874a 100644 --- a/lib/service/notifying.dart +++ b/lib/service/notifying.dart @@ -12,7 +12,7 @@ class Notifying { ScaffoldMessenger.of(context).hideCurrentSnackBar(); ScaffoldMessenger.of(context).showSnackBar( SnackBar( - backgroundColor: Theme.of(context).colorScheme.error, + backgroundColor: isError ? Theme.of(context).colorScheme.error : null, content: SizedBox( height: 30, child: Row( @@ -29,7 +29,7 @@ class Notifying { ScaffoldMessenger.of(context).hideCurrentSnackBar(), icon: Icon( Icons.close_rounded, - color: Theme.of(context).colorScheme.onError, + color: isError ? Theme.of(context).colorScheme.onError : null, ), ), ],