class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
selectedIconTheme: IconThemeData(opacity: 1.0), // 选中图标的不透明度
unselectedIconTheme: IconThemeData(opacity: 0.7), // 未选中图标的不透明度
),
splashFactory: NoSplash.splashFactory, // 全局移除水波纹效果
highlightColor: Colors.transparent, // 全局移除点击高亮效果
),
home: const LoginVC(),
);
}
}
01-03
11-25
1197
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)