1 | initial version |
To eliminate the debug banner in Flutter, add the following line of code to the MaterialApp
widget or the CupertinoApp
widget, depending on which one you are using:
debugShowCheckedModeBanner: false,
For example:
void main() {
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
home: MyWidget(),
),
);
}
This will remove the "debug" banner from the top right corner of your app's screen.