更新顶部系统状态栏颜色
This commit is contained in:
@@ -6,6 +6,7 @@ import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
import 'package:vbvs_app/component/NullDataComponentWidget.dart';
|
||||
import 'package:vbvs_app/pages/mh_page/device/device.dart';
|
||||
import 'package:vbvs_app/pages/mh_page/searchWidget.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import '../../controller/mh_controller/device_list_controller.dart';
|
||||
|
||||
@@ -44,6 +45,11 @@ class _DeviceListPageState extends State<DeviceListPage> {
|
||||
child: Scaffold(
|
||||
resizeToAvoidBottomInset: false,
|
||||
appBar: AppBar(
|
||||
systemOverlayStyle: SystemUiOverlayStyle(
|
||||
statusBarColor: Colors.transparent, // 状态栏背景色
|
||||
statusBarIconBrightness: Brightness.light, // 图标颜色(Android)
|
||||
statusBarBrightness: Brightness.light, // 图标颜色(iOS)
|
||||
),
|
||||
backgroundColor: Colors.transparent,
|
||||
automaticallyImplyLeading: false,
|
||||
iconTheme: IconThemeData(color: Colors.white),
|
||||
|
||||
Reference in New Issue
Block a user