Skip to content
Readerstacks logo Readerstacks
  • Home
  • Softwares
  • Angular
  • Php
  • Laravel
  • Flutter
Readerstacks logo
Readerstacks
How to Remove Debug Text Banner in Flutter Application

How to Remove Debug Text Banner in Flutter Application?

Aman Jain, September 11, 2022March 16, 2024

In this tutorial we will learn to remove debug text banner in flutter application. When we first time setup the project and install it in device it shows debug text banner at right top side of application so if we want to remove it we simply need to add debugShowCheckedModeBanner to Material app or Cupertino app.

To hide or remove the debug banner add debugShowCheckedModeBanner with value false to Material App or Cupertino app. You can simple add it as follow

MaterialApp(
  debugShowCheckedModeBanner: false
)

CupertinoApp(
  debugShowCheckedModeBanner: false
)

Note: You only need to add it in root main material app not in all widget.

Let’s understand Remove Debug Text Banner in Flutter Application with an example

Step 1 : Create flutter project

Very first step is to create the fluter application using command line tool or in Android studio.

flutter create example_app

This will create a new project with name my_app then go in to the folder .

Step 2 : Update main.dart file

Now, open the main.dart file and add the debugShowCheckedModeBanner with value false to Material App

File : lib/main.dart

import 'package:example_app/assetimagedemo.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,  // <-- add this
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const  Container(child:Text("Test")),
    );
  }
}

Step 3: Run the project

Simply run the project using command line or in android studio to check the implementation.

flutter run lib/main.dart

Screenshot :

remove debug banner from flutter
remove debug banner from flutter

Read Also : How to create routing in flutter and pass parameters to routes ?

Related

Dart Flutter bannerdebugFluttter

Post navigation

Previous post
Next post

Related Posts

Flutter How to Use Hash Hexadecimal Color Code in flutter

How to Use Hash Hexadecimal Color Code in flutter ?

September 13, 2022March 16, 2024

Flutter provides color class to use only integer value and RGB value but to use hash hexadecimal color code in flutter we need to add extra efforts so that we can use hash based hexadecimal string in flutter. Hexadecimal colors are those colors which starts with # char. Flutter Color…

Read More
Dart Navigating between pages in flutter

How to navigate between one page to another in flutter ?

January 4, 2022January 15, 2022

Flutter provides its inbuilt navigator to navigate between pages. In our application it must have multiple screens and we wanted to navigate on all screens so in flutter we use Navigator class to navigate between pages. In android we use Activity and in iOS we use ViewController to navigate between…

Read More
Dart Create Drawer in flutter

How to create drawer in flutter with example ?

January 3, 2022January 15, 2022

Flutter itself provides various widgets to create the industry level standard layout. One of the feature of flutter is creating default drawer in flutter with Scaffold. Using the drawer we can show our application menus list and hide show in sidebar. In this s tutorial i will create a simple…

Read More

Aman Jain
Aman Jain

With years of hands-on experience in the realm of web and mobile development, they have honed their skills in various technologies, including Laravel, PHP CodeIgniter, mobile app development, web app development, Flutter, React, JavaScript, Angular, Devops and so much more. Their proficiency extends to building robust REST APIs, AWS Code scaling, and optimization, ensuring that your applications run seamlessly on the cloud.

Categories

  • Angular
  • CSS
  • Dart
  • Devops
  • Flutter
  • HTML
  • Javascript
  • jQuery
  • Laravel
  • Laravel 10
  • Laravel 11
  • Laravel 9
  • Mysql
  • Php
  • Softwares
  • Ubuntu
  • Uncategorized

Archives

  • May 2025
  • April 2025
  • October 2024
  • July 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • July 2023
  • March 2023
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Recent Posts

  • Understanding High Vulnerabilities: A Deep Dive into Recent Security Concerns
  • Understanding High Vulnerabilities in Software: A Week of Insights
  • Blocking Spam Requests with LaraGuard IP: A Comprehensive Guide
  • Enhancing API Development with Laravel API Kit
  • Exploring the Future of Web Development: Insights from Milana Cap
©2023 Readerstacks | Design and Developed by Readerstacks
Go to mobile version