by @kodeazy

flutter How to remove debug banner while developing the code?

Home » flutter » flutter How to remove debug banner while developing the code?

In this blog we will discuss on how to remove debug banner while developing the code.

To remove the debug banner we add debugShowCheckedModeBanner as false.
Below is the syntax.

debugShowCheckedModeBanner: false

Below is an example code of removing the debug banner.

import 'package:flutter/material.dart';
void main() {
  runApp(
      MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(title: Text("Debug Banner remove example"),backgroundColor: Colors.black87,),
        backgroundColor : Colors.amber,
  ),
  ));
}

Output: Debug Remove Image