A debug banner is controlled by the debugShowCheckedModeBanner property of a MaterialApp and CupertinoApp widget. To remove or hide the debug banner in your Flutter app, set the debugShowCheckedModeBanner property to false in the constructor argument of a MaterialApp/CupertinoApp.
MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(
title: const Text('Home'),
),
),
);

No comments:
Post a Comment