Skip to content

Commit

Permalink
fixed ios status bar color
Browse files Browse the repository at this point in the history
  • Loading branch information
ninest committed Apr 7, 2020
1 parent a018384 commit 69dec5c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/route_app.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_statusbarcolor/flutter_statusbarcolor.dart';
import 'package:hive/hive.dart';
import 'package:nextbussg/tabbed_app.dart';
import 'package:bot_toast/bot_toast.dart';
Expand Down Expand Up @@ -44,6 +45,15 @@ class RouteApp extends StatelessWidget {
statusBarIconBrightness: Brightness.light,
));
}
} else if (Platform.isIOS) {
if (theme == ThemeEnum.light) {
print("IOS DARK");
FlutterStatusbarcolor.setStatusBarColor(Colors.transparent);
FlutterStatusbarcolor.setStatusBarWhiteForeground(false);
} else {
FlutterStatusbarcolor.setStatusBarColor(Color(0xFF111111));
FlutterStatusbarcolor.setStatusBarWhiteForeground(true);
}
}

return BotToastInit(
Expand Down

0 comments on commit 69dec5c

Please sign in to comment.