$0.03

How can I remove the DEBUG ribbon from the application title?

Ask a question+
1

Writing the first application using Flutter, wondering how to remove the DEBUG ribbon from the main window.

Jaco 500
add comment

1 Answer

1

To remove the debug ribbon, it is possible to leverage debugShowCheckedModeBanner: false property.

class HelloFlutterApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        title: "Hello Flutter Application",
        home: Scaffold(
          appBar: AppBar(
            title: Text("Hello Flutter Application"),
          ),
          body: Home()
        ));
  }
}
Jaco 500
add comment

Your Answer