mirror of
https://github.com/git-touch/git-touch
synced 2025-01-19 02:40:05 +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: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),
|
||||
|
Loading…
Reference in New Issue
Block a user