fixed visual bug

This commit is contained in:
2026-01-23 16:41:16 +01:00
parent b4016e6e5b
commit ff1b102047

View File

@@ -12,7 +12,7 @@ class Notifying {
ScaffoldMessenger.of(context).hideCurrentSnackBar(); ScaffoldMessenger.of(context).hideCurrentSnackBar();
ScaffoldMessenger.of(context).showSnackBar( ScaffoldMessenger.of(context).showSnackBar(
SnackBar( SnackBar(
backgroundColor: Theme.of(context).colorScheme.error, backgroundColor: isError ? Theme.of(context).colorScheme.error : null,
content: SizedBox( content: SizedBox(
height: 30, height: 30,
child: Row( child: Row(
@@ -29,7 +29,7 @@ class Notifying {
ScaffoldMessenger.of(context).hideCurrentSnackBar(), ScaffoldMessenger.of(context).hideCurrentSnackBar(),
icon: Icon( icon: Icon(
Icons.close_rounded, Icons.close_rounded,
color: Theme.of(context).colorScheme.onError, color: isError ? Theme.of(context).colorScheme.onError : null,
), ),
), ),
], ],