dart-pad icon indicating copy to clipboard operation
dart-pad copied to clipboard

disable debug banner by default

Open johnpryan opened this issue 6 years ago • 3 comments

Samples currently have to disable debugShowCheckedModeBanner on MaterialApp to hide the banner. We should hide it by default. The API docs are showing it too: https://master-api.flutter.dev/flutter/material/AppBar-class.html

johnpryan avatar Nov 22 '19 18:11 johnpryan

Looks like there's a global flag in the WidgetsApp class:

https://github.com/flutter/flutter/blob/a1c5e3354be7e0c391447d958bc546629bbe148a/packages/flutter/lib/src/widgets/app.dart#L705

We could modify the bootstrap file to flip that bit.

https://github.com/dart-lang/dart-services/blob/aec916c78aeb0c5a915ed48ded09d020cf33d0bd/lib/src/common.dart#L14

redbrogdon avatar Nov 22 '19 18:11 redbrogdon

here the deep guide to you https://laratuto.com/how-to-remove-debug-banner-in-flutter/

rajkananirk avatar Feb 08 '22 20:02 rajkananirk

@RedBrogdon I'm guessing we would need to patch the Flutter SDK before compiling the JS bundles as part of the build process. Does that sound right?

domesticmouse avatar Feb 09 '22 00:02 domesticmouse