Commit fbcc842 1 parent de1da26 commit fbcc842 Copy full SHA for fbcc842
File tree 1 file changed +3
-2
lines changed
lib/src/components/banners
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
import 'dart:io' ;
2
2
3
+ import 'package:flutter/foundation.dart' ;
3
4
import 'package:flutter/material.dart' ;
4
5
import 'package:flutter/services.dart' ;
5
6
import '../../../zeta_flutter.dart' ;
@@ -38,10 +39,10 @@ class ZetaSystemBanner extends MaterialBanner {
38
39
builder: (context) {
39
40
final backgroundColor = _backgroundColorFromType (context, type);
40
41
final foregroundColor = backgroundColor.onColor;
41
- if (context.mounted) {
42
+ if (! kIsWeb && Platform .isAndroid && context.mounted) {
42
43
// ignore: invalid_use_of_visible_for_testing_member
43
44
final statusBarColor = SystemChrome .latestStyle? .statusBarColor;
44
- if (Platform .isAndroid && statusBarColor != backgroundColor) {
45
+ if (statusBarColor != backgroundColor) {
45
46
SystemChrome .setSystemUIOverlayStyle (
46
47
SystemUiOverlayStyle (
47
48
statusBarColor: backgroundColor,
You can’t perform that action at this time.
0 commit comments