LoginSignup
1
2

More than 3 years have passed since last update.

flutterのdebugと書かれたバナーを消す方法

Posted at

flutter run等でデバッグビルドすると画面右上に赤い帯が出る

消したい場合は
MaterialAppに
debugShowCheckedModeBanner: false

を入れれば、消える。

全体はこんな感じ。

return MaterialApp(
      title: 'flutter',
      debugShowCheckedModeBanner: false,
      home: MyHomePgae(),
    );
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2