fix: transparent status bar (#73)

* fix: transparent status bar

* move fix to main.dart
This commit is contained in:
Shreyas Thirumalai 2020-04-30 08:18:42 +05:30 committed by GitHub
parent bf5ed23971
commit 0063e99bbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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();
@ -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),