flutter remove debug flag code example

Example 1: hide debug flag flutter

MaterialApp(
  home: MyHomePage(),
  debugShowCheckedModeBanner: false,
);

Example 2: flutter remove debug flag

// Add debugShowCheckedModeBanner: false to your Material
return new MaterialApp(
	debugShowCheckedModeBanner: false,
    theme: new ThemeData(
      primarySwatch: Colors.green,
    ),
    //...
);

Example 3: remove debug from flutter emulator

debugShowCheckedModeBanner: false,
return new MaterialApp(
    debugShowCheckedModeBanner: false,
    home: new Column(
        ...
    )
);

Example 4: disable debug banner flutter

MaterialApp(
  debugShowCheckedModeBanner: false,
)

Example 5: remove debug flag flutter

MaterialApp(
 debugShowCheckedModeBanner: false
)

Tags:

Dart Example