class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo', //应用名
debugShowCheckedModeBanner: false, //隐藏debug的角标
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(title: 'Hello Flutter'),
);
}
}
隐藏右上角的debug角标
猜你喜欢
转载自blog.csdn.net/xiaopihair123/article/details/125327391
今日推荐
周排行