更新顶部系统状态栏颜色
This commit is contained in:
@@ -6,6 +6,7 @@ import 'package:vbvs_app/common/util/FitTool.dart';
|
||||
import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
import 'package:vbvs_app/component/tool/CustomCard.dart';
|
||||
import 'package:vbvs_app/controller/mh_controller/score_controller.dart' as mh;
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
class ScorePage extends GetView<mh.ScoreController> {
|
||||
BoxConstraints? bodysize;
|
||||
@@ -31,6 +32,11 @@ class ScorePage extends GetView<mh.ScoreController> {
|
||||
// key: scaffoldKey,
|
||||
backgroundColor: Colors.transparent,
|
||||
appBar: AppBar(
|
||||
systemOverlayStyle: SystemUiOverlayStyle(
|
||||
statusBarColor: Colors.transparent, // 状态栏背景色
|
||||
statusBarIconBrightness: Brightness.light, // 图标颜色(Android)
|
||||
statusBarBrightness: Brightness.light, // 图标颜色(iOS)
|
||||
),
|
||||
backgroundColor: Colors.transparent,
|
||||
iconTheme: const IconThemeData(color: Colors.white),
|
||||
automaticallyImplyLeading: false,
|
||||
@@ -268,7 +274,8 @@ class ScorePage extends GetView<mh.ScoreController> {
|
||||
scoreColor =
|
||||
stringToColor("#F8AE00");
|
||||
} else {
|
||||
scoreText = '未评分'.tr; // 如果没有评分显示默认文字
|
||||
scoreText =
|
||||
'未评分'.tr; // 如果没有评分显示默认文字
|
||||
scoreColor = Colors.grey; // 默认颜色
|
||||
}
|
||||
return Text(
|
||||
@@ -289,7 +296,8 @@ class ScorePage extends GetView<mh.ScoreController> {
|
||||
EdgeInsetsDirectional.fromSTEB(
|
||||
0, 17, 0, 0),
|
||||
child: Text(
|
||||
'再多的溢美之词,都比不上您真心的评价。我们愿付出200%的努力,只为您100%的满意~感谢您的支持与厚爱!'.tr,
|
||||
'再多的溢美之词,都比不上您真心的评价。我们愿付出200%的努力,只为您100%的满意~感谢您的支持与厚爱!'
|
||||
.tr,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Readex Pro',
|
||||
fontSize: 26.rpx,
|
||||
|
||||
Reference in New Issue
Block a user