/ snippet

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:


class TodoApp extends StatelessWidget {
  @override
  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(),
      },
    );
  }
}

Brian Armstrong

A web application developer with 15+ years programming experience. Flutter evangelist, React.js enthusiast.

Read More