更新顶部系统状态栏颜色

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

@@ -25,6 +25,7 @@ import 'package:vbvs_app/model/BleDeviceData.dart';
import 'package:vbvs_app/pages/device_bind/blueteeth_device_page.dart';
import 'package:vbvs_app/pages/device_bind/componnet/bind_dialog.dart';
import 'package:EasyDartModule/EasyDartModule.dart' as edm;
import 'package:flutter/services.dart';
class WifiPage extends StatefulWidget {
var type; //为空,首次绑定 不为空,从设备列表进入
@@ -155,6 +156,11 @@ class _WifiPageState extends State<WifiPage> {
child: Scaffold(
backgroundColor: Colors.transparent, // 加上这一行
appBar: AppBar(
systemOverlayStyle: SystemUiOverlayStyle(
statusBarColor: Colors.transparent, // 状态栏背景色
statusBarIconBrightness: Brightness.light, // 图标颜色Android
statusBarBrightness: Brightness.light, // 图标颜色iOS
),
backgroundColor: themeController.currentColor.sc5,
automaticallyImplyLeading: false,
iconTheme: IconThemeData(color: themeController.currentColor.sc3),
@@ -797,7 +803,7 @@ class _WifiPageState extends State<WifiPage> {
Get.toNamed("/calibrationPage",
arguments: 1);
});
} else if (aa == 'unknown') {
} else if (aa == 'unknown') {
blueteethBindController
.netType.value = 3;
blueteethBindController.updateAll();
@@ -1180,7 +1186,6 @@ class _WifiPageState extends State<WifiPage> {
}
}
Future<void> dealWifi(String mac,
{bool needTip = true, bool needSuccess = false}) async {
if (dealing) {