flutter如何修改状态栏颜色和状态栏字体颜色

flutter如何实现导航状态栏透明

Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
        //状态栏字体颜色
        appBarTheme: const AppBarTheme(
          systemOverlayStyle: SystemUiOverlayStyle(
            statusBarColor: Colors.transparent,
            statusBarIconBrightness: Brightness.light,
          ),
        ),
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}
	 

更多关于flutter如何修改状态栏颜色和状态栏字体颜色的实战教程也可以访问 https://www.itying.com/category-92-b0.html

1 回复

更多关于flutter如何修改状态栏颜色和状态栏字体颜色的实战系列教程也可以访问 https://www.itying.com/category-92-b0.html


flutter免费教程学习:https://www.itying.com/goods-1101.html

回到顶部