更新顶部系统状态栏颜色

This commit is contained in:
wyf
2026-04-07 14:49:31 +08:00
parent 0ead6eb952
commit 30d7764a10
118 changed files with 897 additions and 246 deletions

View File

@@ -28,6 +28,7 @@ import 'package:vbvs_app/pages/mh_page/device/model/BlueToothDataModel.dart';
import 'package:vbvs_app/pages/mh_page/device/upgrade/BatchUpgradeManager.dart';
import 'package:vbvs_app/pages/mh_page/device/upgrade/device_upgrade_controller.dart';
import 'package:vbvs_app/pages/mh_page/device/upgrade/tool/device_upgrade_tool.dart';
import 'package:flutter/services.dart';
class DeviceUpgrade extends StatefulWidget {
DeviceUpgrade({super.key});
@@ -412,6 +413,11 @@ class _DeviceUpgradeState extends State<DeviceUpgrade> {
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent,
appBar: AppBar(
systemOverlayStyle: SystemUiOverlayStyle(
statusBarColor: Colors.transparent, // 状态栏背景色
statusBarIconBrightness: Brightness.light, // 图标颜色Android
statusBarBrightness: Brightness.light, // 图标颜色iOS
),
iconTheme: IconThemeData(color: themeController.currentColor.sc3),
backgroundColor: Colors.transparent,
automaticallyImplyLeading: false,

View File

@@ -23,6 +23,7 @@ import 'package:vbvs_app/pages/mh_page/device/controller/mht_bluetooth_controlle
import 'package:vbvs_app/pages/mh_page/device/mht_blueteeth_device_page.dart';
import 'package:vbvs_app/pages/mh_page/device/model/BlueToothDataModel.dart';
import 'package:vbvs_app/pages/mh_page/device/upgrade/device_upgrade_controller.dart';
import 'package:flutter/services.dart';
class DeviceUpgradeList extends StatefulWidget {
DeviceUpgradeList({super.key});
@@ -407,6 +408,11 @@ class _DeviceUpgradeState extends State<DeviceUpgradeList> {
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent,
appBar: AppBar(
systemOverlayStyle: SystemUiOverlayStyle(
statusBarColor: Colors.transparent, // 状态栏背景色
statusBarIconBrightness: Brightness.light, // 图标颜色Android
statusBarBrightness: Brightness.light, // 图标颜色iOS
),
iconTheme: IconThemeData(color: themeController.currentColor.sc3),
backgroundColor: Colors.transparent,
automaticallyImplyLeading: false,
@@ -447,10 +453,10 @@ class _DeviceUpgradeState extends State<DeviceUpgradeList> {
child: Column(
children: [
Obx(() {
if (mhtDeviceUpgradeController.model
.upgradingDevices!.isNotEmpty) {
final sortedList = mhtDeviceUpgradeController.model
.upgradingDevices!
if (mhtDeviceUpgradeController
.model.upgradingDevices!.isNotEmpty) {
final sortedList = mhtDeviceUpgradeController
.model.upgradingDevices!
.toList()
..sort((a, b) => b.rssi!.compareTo(a.rssi!));
// if (sortedList.length > 0) {