Skip to content

Commit

Permalink
Merge pull request #17 from ozgunozerk/fix-system-icons
Browse files Browse the repository at this point in the history
make status bar icons black
  • Loading branch information
ozgunozerk authored Dec 12, 2023
2 parents 04eeaef + 6f3d0cd commit 6070685
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>UIUserInterfaceStyle</key>
<string>Light</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<true/>
<key>UIStatusBarHidden</key>
<false/>
</dict>
Expand Down
5 changes: 5 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import 'package:how_much/presentation/ui/colours.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();

SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
statusBarBrightness: Brightness.light) // Or Brightness.dark
);

// disables horizontal mode
await SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
Expand Down

0 comments on commit 6070685

Please sign in to comment.