diff --git a/lib/src/flash.dart b/lib/src/flash.dart index 45b483e..d7ad5c5 100644 --- a/lib/src/flash.dart +++ b/lib/src/flash.dart @@ -580,14 +580,6 @@ class _FlashBarState extends State with SingleTickerProviderStateMixin ); } - if (widget.position == FlashPosition.top) { - final brightness = ThemeData.estimateBrightnessForColor(backgroundColor); - child = AnnotatedRegion( - value: brightness == Brightness.dark ? SystemUiOverlayStyle.light : SystemUiOverlayStyle.dark, - child: child, - ); - } - child = FadeTransition( opacity: widget.controller.controller, child: Flash( @@ -1104,4 +1096,4 @@ class _DefaultFlashBarTheme extends FlashBarTheme { @override TextStyle? get contentTextStyle => _textTheme.titleMedium; -} +} \ No newline at end of file