更新顶部系统状态栏颜色
This commit is contained in:
@@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:vbvs_app/common/util/FitTool.dart';
|
||||
import 'dart:math' as math;
|
||||
import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
class BackMovementPage extends StatefulWidget {
|
||||
const BackMovementPage({super.key});
|
||||
@@ -28,6 +29,11 @@ class _BackMovementPageState extends State<BackMovementPage> {
|
||||
child: Container(
|
||||
child: Scaffold(
|
||||
appBar: AppBar(
|
||||
systemOverlayStyle: SystemUiOverlayStyle(
|
||||
statusBarColor: Colors.transparent, // 状态栏背景色
|
||||
statusBarIconBrightness: Brightness.light, // 图标颜色(Android)
|
||||
statusBarBrightness: Brightness.light, // 图标颜色(iOS)
|
||||
),
|
||||
iconTheme: IconThemeData(color: themeController.currentColor.sc3),
|
||||
backgroundColor: const Color(0xFF011C33), // 统一背景色
|
||||
automaticallyImplyLeading: false,
|
||||
@@ -209,7 +215,7 @@ class _BackMovementPageState extends State<BackMovementPage> {
|
||||
borderRadius: BorderRadius.circular(6),
|
||||
),
|
||||
),
|
||||
child: Text('恢复到默认设置'.tr),
|
||||
child: Text('恢复到默认设置'.tr),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user