05.MaterialApp

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.orange,// 导航背景
        splashColor: const Color.fromRGBO(1, 1, 1, 0), // 去掉点击波纹
      ),
      title: "FakeWechat", // Android 任务中心标题
      home: MyHomePage(),
    );
  }
}

Last updated