Hiding "Slow Mode" banner
Want to be able to show up your app in an emulator (or get screenshots) without the Slow Mode
banner in the upper-right corner?
Just set debugShowCheckedModeBanner: false
on your MaterialApp
.
Done!
An example from our TodoMVC app:
main.dart
class TodoApp extends StatelessWidget {
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter • TodoMVC',
debugShowCheckedModeBanner: false, theme: new ThemeData(
fontFamily: 'Helvetica Neue',
primarySwatch: Colors.blueGrey,
),
home: new SplashPage(),
routes: <String, WidgetBuilder>{
'/todos': (BuildContext context) => new TodoList(),
},
);
}
}