去除Flutter的debug标志 发表于 2021-07-25 | 分类于 Flutter 12345678910Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home: MyHomePage(title: 'Flutter Demo Home Page'), );} 主要就是这句话 1debugShowCheckedModeBanner: false, 显示的话改成true或者直接删掉 1debugShowCheckedModeBanner: true,