void main() {
runApp(MyApp());
if (Platform.isAndroid) {
SystemUiOverlayStyle style = SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
statusBarIconBrightness: Brightness.dark);
SystemChrome.setSystemUIOverlayStyle(style);
}
}
class MeScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(
"我",
style: TextStyle(
color: Colors.black,
),
),
backgroundColor: Colors.white,
centerTitle: true,
// brightness: Brightness.dark
),
);
}
}