File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/src/components/banners Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import 'dart:io' ;
22
3+ import 'package:flutter/foundation.dart' ;
34import 'package:flutter/material.dart' ;
45import 'package:flutter/services.dart' ;
56import '../../../zeta_flutter.dart' ;
@@ -38,10 +39,10 @@ class ZetaSystemBanner extends MaterialBanner {
3839 builder: (context) {
3940 final backgroundColor = _backgroundColorFromType (context, type);
4041 final foregroundColor = backgroundColor.onColor;
41- if (context.mounted) {
42+ if (! kIsWeb && Platform .isAndroid && context.mounted) {
4243 // ignore: invalid_use_of_visible_for_testing_member
4344 final statusBarColor = SystemChrome .latestStyle? .statusBarColor;
44- if (Platform .isAndroid && statusBarColor != backgroundColor) {
45+ if (statusBarColor != backgroundColor) {
4546 SystemChrome .setSystemUIOverlayStyle (
4647 SystemUiOverlayStyle (
4748 statusBarColor: backgroundColor,
You can’t perform that action at this time.
0 commit comments