Created
July 23, 2021 22:36
-
-
Save lennonjesus/0b72ba2e404c0d0882869742117a65df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter_modular/flutter_modular.dart'; | |
import 'package:asuka/asuka.dart' as asuka show builder; | |
class AppWidget extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
//Set defaults to system colors | |
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( | |
//statusBar | |
statusBarColor: Colors.transparent, | |
statusBarIconBrightness: Brightness.dark, | |
//navigationBar color | |
systemNavigationBarColor: Colors.transparent, //bottom bar color | |
systemNavigationBarIconBrightness: Brightness.dark, //bottom bar icons | |
)); | |
return MaterialApp( | |
navigatorKey: Modular.navigatorKey, | |
debugShowCheckedModeBanner: false, | |
theme: ThemeData( | |
primarySwatch: Colors.blue, | |
), | |
builder: asuka.builder, | |
initialRoute: '/', | |
onGenerateRoute: Modular.generateRoute, | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment