Skip to content

Instantly share code, notes, and snippets.

@lennonjesus
Created July 23, 2021 22:36
Show Gist options
  • Save lennonjesus/0b72ba2e404c0d0882869742117a65df to your computer and use it in GitHub Desktop.
Save lennonjesus/0b72ba2e404c0d0882869742117a65df to your computer and use it in GitHub Desktop.
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