void main() async {
WidgetsFlutterBinding.ensureInitialized();
// doSomething...
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return new MaterialApp(
home: App(),
);
}
}