更新顶部系统状态栏颜色
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user