📜  如何在 Flutter 中更改颜色通知栏 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:05.793000             🧑  作者: Mango

代码示例1
import 'package:flutter/services.dart';
 Widget build(BuildContext context) {
    SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
       statusBarColor: Color(0xFF2E7D32),
    ));
 
    return MaterialApp()