Flutter去除右上角Debug标签

void main(){
  runApp(new MyApp());
}
 
class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => new _MyAppState();
}
 
class _MyAppState extends State<MyApp> {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: new Text('My Application'),
      debugShowCheckedModeBanner: false,  // 设置这一属性即可
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: new SplashScreen(),
      routes: <String, WidgetBuilder> {
          '/splashscreen': (BuildContext context) => new SplashScreen(),
          '/conditions': (BuildContext context) => new TermsAndConditionsPage(),
        },
    );
  }
}

 

posted @ 2019-04-29 09:06  飞雪飘鸿  阅读(749)  评论(0编辑  收藏  举报
https://damo.alibaba.com/ https://tianchi.aliyun.com/course?spm=5176.21206777.J_3941670930.5.87dc17c9BZNvLL