mirror of
https://github.com/git-touch/git-touch
synced 2025-01-31 08:04:51 +01:00
fix: transparent status bar (#73)
* fix: transparent status bar * move fix to main.dart
This commit is contained in:
parent
bf5ed23971
commit
0063e99bbc
@ -9,6 +9,7 @@ import 'package:provider/provider.dart';
|
|||||||
import 'package:git_touch/models/notification.dart';
|
import 'package:git_touch/models/notification.dart';
|
||||||
import 'package:fluro/fluro.dart';
|
import 'package:fluro/fluro.dart';
|
||||||
import 'package:fimber/fimber.dart';
|
import 'package:fimber/fimber.dart';
|
||||||
|
import 'package:flutter/services.dart';
|
||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
@ -62,6 +63,11 @@ void main() async {
|
|||||||
handler: Handler(handlerFunc: screen.handler));
|
handler: Handler(handlerFunc: screen.handler));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// To match status bar color to app bar color
|
||||||
|
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
|
||||||
|
statusBarColor: Colors.transparent,
|
||||||
|
));
|
||||||
|
|
||||||
runApp(MultiProvider(
|
runApp(MultiProvider(
|
||||||
providers: [
|
providers: [
|
||||||
ChangeNotifierProvider(create: (context) => notificationModel),
|
ChangeNotifierProvider(create: (context) => notificationModel),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user