Compare commits

...

2 Commits

Author SHA1 Message Date
machuanyu a61f52e25f 批阅按钮位置修改 2024-10-31 15:15:51 +08:00
machuanyu ee8cef3ddc 底部状态栏颜色,app图标修改 2024-10-31 15:13:05 +08:00
15 changed files with 198 additions and 179 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 KiB

After

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 KiB

After

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 KiB

After

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 KiB

After

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 KiB

After

Width:  |  Height:  |  Size: 341 KiB

View File

@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart'; import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart';
@ -24,7 +25,16 @@ class _AnnotateClassPageState extends State<AnnotateClassPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
String homeworkId = state.homeworkId.value; String homeworkId = state.homeworkId.value;
return OrientationBuilder( return AnnotatedRegion(
value: const SystemUiOverlayStyle(
systemNavigationBarColor:Colors.transparent,
systemNavigationBarDividerColor: null,
statusBarColor: Colors.transparent,
systemNavigationBarIconBrightness: Brightness.light,
statusBarIconBrightness: Brightness.light,
statusBarBrightness: Brightness.light,
),
child: OrientationBuilder(
builder: (BuildContext context, Orientation orientation) { builder: (BuildContext context, Orientation orientation) {
return Scaffold( return Scaffold(
backgroundColor: const Color.fromRGBO(245, 245, 245, 1), backgroundColor: const Color.fromRGBO(245, 245, 245, 1),
@ -118,7 +128,8 @@ class _AnnotateClassPageState extends State<AnnotateClassPage> {
}), }),
), ),
); );
}); }),
);
} }
@override @override

View File

@ -71,35 +71,6 @@ class _BottomAnnotationSwitchJobState extends State<BottomAnnotationSwitch> with
// padding: EdgeInsets.symmetric(vertical: 1.h), // padding: EdgeInsets.symmetric(vertical: 1.h),
child: Row( child: Row(
children: [ children: [
Expanded(
flex: 3,
child: Row(
children: [
Expanded(
child: SizedBox(
width: double.infinity,
height: double.infinity,
child: TextButton(
onPressed: () => easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.submit(context)),
child: quickText('提 交', size: 14.sp, color: Theme.of(context).primaryColor),
),
),
),
Container(width: 0.3.w, height: double.infinity, color: Colors.white),
Expanded(
child: SizedBox(
width: double.infinity,
height: double.infinity,
child: TextButton(
onPressed: () => easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.cancelAllRatings()),
child: quickText('取 消', size: 14.sp, color: Colors.white),
),
),
),
],
),
),
Container(width: 0.3.w, height: double.infinity, color: Colors.white),
Expanded( Expanded(
flex: 7, flex: 7,
child: Column( child: Column(
@ -108,6 +79,18 @@ class _BottomAnnotationSwitchJobState extends State<BottomAnnotationSwitch> with
Expanded( Expanded(
child: Row( child: Row(
children: [ children: [
//
Expanded(
child: SizedBox(
width: double.infinity,
height: double.infinity,
child: TextButton(
child: quickText('全 对', color: Colors.white, size: 12.sp),
onPressed: () => easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.allPairs(context)),
),
),
),
Container(width: 0.3.w, height: double.infinity, color: Colors.white),
// //
Expanded( Expanded(
child: SizedBox( child: SizedBox(
@ -151,18 +134,6 @@ class _BottomAnnotationSwitchJobState extends State<BottomAnnotationSwitch> with
), ),
), ),
), ),
Container(width: 0.3.w, height: double.infinity, color: Colors.white),
//
Expanded(
child: SizedBox(
width: double.infinity,
height: double.infinity,
child: TextButton(
child: quickText('全 对', color: Colors.white, size: 12.sp),
onPressed: () => easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.allPairs(context)),
),
),
),
], ],
), ),
), ),
@ -170,6 +141,19 @@ class _BottomAnnotationSwitchJobState extends State<BottomAnnotationSwitch> with
Expanded( Expanded(
child: Row( child: Row(
children: [ children: [
//
Expanded(
child: SizedBox(
width: double.infinity,
height: double.infinity,
child: TextButton(
onPressed: () =>
easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.allWrongRating(context)),
child: quickText('全 错', color: Colors.white, size: 12.sp),
),
),
),
Container(width: 0.3.w, height: double.infinity, color: Colors.white),
// //
Expanded( Expanded(
child: SizedBox( child: SizedBox(
@ -199,25 +183,43 @@ class _BottomAnnotationSwitchJobState extends State<BottomAnnotationSwitch> with
), ),
), ),
), ),
],
),
),
],
),
),
Container(width: 0.3.w, height: double.infinity, color: Colors.white), Container(width: 0.3.w, height: double.infinity, color: Colors.white),
// Expanded(
flex: 3,
child: Row(
children: [
Expanded( Expanded(
child: SizedBox( child: SizedBox(
width: double.infinity, width: double.infinity,
height: double.infinity, height: double.infinity,
child: TextButton( child: TextButton(
onPressed: () => onPressed: () => easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.cancelAllRatings()),
easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.allWrongRating(context)), child: quickText('取 消', size: 14.sp, color: Colors.white),
child: quickText('全 错', color: Colors.white, size: 12.sp), ),
),
),
Container(width: 0.3.w, height: double.infinity, color: Colors.white),
Expanded(
child: SizedBox(
width: double.infinity,
height: double.infinity,
child: TextButton(
onPressed: () => easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.submit(context)),
child: quickText('提 交', size: 14.sp, color: Theme.of(context).primaryColor),
), ),
), ),
), ),
], ],
), ),
), ),
],
),
),
], ],
), ),
); );

View File

@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:making_school_asignment_app/page/global_widget/ReturnToHomepage.dart'; import 'package:making_school_asignment_app/page/global_widget/ReturnToHomepage.dart';
@ -47,6 +48,15 @@ class _HomeworkReviewState extends State<HomeworkReview> {
_homeLogicController.getList(); _homeLogicController.getList();
} }
}, },
child: AnnotatedRegion(
value: const SystemUiOverlayStyle(
systemNavigationBarColor: Color(0xFF000000),
systemNavigationBarDividerColor: null,
statusBarColor: Colors.transparent,
systemNavigationBarIconBrightness: Brightness.light,
statusBarIconBrightness: Brightness.light,
statusBarBrightness: Brightness.light,
),
child: SafeArea( child: SafeArea(
child: Scaffold( child: Scaffold(
appBar: AppBar( appBar: AppBar(
@ -73,6 +83,7 @@ class _HomeworkReviewState extends State<HomeworkReview> {
// floatingActionButtonLocation: FloatingActionButtonLocation.startFloat, // floatingActionButtonLocation: FloatingActionButtonLocation.startFloat,
), ),
), ),
),
); );
} }
} }

View File

@ -24,7 +24,7 @@ class _MyInfoState extends State<MyInfo> with AutomaticKeepAliveClientMixin {
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle( SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
statusBarIconBrightness: Brightness.light, statusBarIconBrightness: Brightness.light,
statusBarColor: Colors.transparent, // statusBarColor: Colors.transparent, //
systemStatusBarContrastEnforced: false, // systemStatusBarContrastEnforced: false,
)); ));
super.initState(); super.initState();
} }

View File

@ -21,11 +21,6 @@ class _ReadOverPageState extends State<ReadOverPage> {
@override @override
void initState() { void initState() {
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
statusBarColor: Colors.transparent, //
statusBarIconBrightness: Brightness.light,
systemStatusBarContrastEnforced: false,
));
super.initState(); super.initState();
} }
@ -33,9 +28,9 @@ class _ReadOverPageState extends State<ReadOverPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return AnnotatedRegion( return AnnotatedRegion(
value: const SystemUiOverlayStyle( value: const SystemUiOverlayStyle(
systemNavigationBarColor: Color(0xFF000000), /* systemNavigationBarColor: Color(0xFF000000),
systemNavigationBarDividerColor: null, systemNavigationBarDividerColor: null,*/
statusBarColor: Colors.white, statusBarColor: Colors.transparent,
systemNavigationBarIconBrightness: Brightness.light, systemNavigationBarIconBrightness: Brightness.light,
statusBarIconBrightness: Brightness.light, statusBarIconBrightness: Brightness.light,
statusBarBrightness: Brightness.light, statusBarBrightness: Brightness.light,