更新顶部系统状态栏颜色

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

@@ -6,6 +6,7 @@ import 'package:vbvs_app/common/util/MyUtils.dart';
import 'package:vbvs_app/pages/mh_page/issue_preview_widget.dart';
import '../../controller/mh_controller/issue_controller.dart';
import 'package:flutter/services.dart';
class IssueListPage extends GetView<IssueListController> {
final scaffoldKey = GlobalKey<ScaffoldState>();
@@ -33,6 +34,11 @@ class IssueListPage extends GetView<IssueListController> {
child: Scaffold(
backgroundColor: Colors.transparent,
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),
@@ -73,12 +79,14 @@ class IssueListPage extends GetView<IssueListController> {
),
child: Obx(() {
if (controller.model.isLoading) {
return Center(child:CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
),); // ✅ 加载中
return Center(
child: CircularProgressIndicator(
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
themeController.currentColor.sc1,
),
),
); // ✅ 加载中
}
if (controller.model.issueList.isEmpty) {