Skip to content

Commit

Permalink
fix: transparent status bar (#73)
Browse files Browse the repository at this point in the history
* fix: transparent status bar

* move fix to main.dart
  • Loading branch information
shreyas1599 committed Apr 30, 2020
1 parent bf5ed23 commit 0063e99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/main.dart
Expand Up @@ -9,6 +9,7 @@ import 'package:provider/provider.dart';
import 'package:git_touch/models/notification.dart';
import 'package:fluro/fluro.dart';
import 'package:fimber/fimber.dart';
import 'package:flutter/services.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();
Expand Down Expand Up @@ -62,6 +63,11 @@ void main() async {
handler: Handler(handlerFunc: screen.handler));
});

// To match status bar color to app bar color
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
));

runApp(MultiProvider(
providers: [
ChangeNotifierProvider(create: (context) => notificationModel),
Expand Down

0 comments on commit 0063e99

Please sign in to comment.