底部状态栏颜色,app图标修改
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 305 KiB After Width: | Height: | Size: 341 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 305 KiB After Width: | Height: | Size: 341 KiB |
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 305 KiB After Width: | Height: | Size: 341 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 305 KiB After Width: | Height: | Size: 341 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 305 KiB After Width: | Height: | Size: 341 KiB |
|
|
@ -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,101 +25,111 @@ 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(
|
||||||
builder: (BuildContext context, Orientation orientation) {
|
value: const SystemUiOverlayStyle(
|
||||||
return Scaffold(
|
systemNavigationBarColor:Colors.transparent,
|
||||||
backgroundColor: const Color.fromRGBO(245, 245, 245, 1),
|
systemNavigationBarDividerColor: null,
|
||||||
appBar: AppBar(
|
statusBarColor: Colors.transparent,
|
||||||
backgroundColor: Colors.white,
|
systemNavigationBarIconBrightness: Brightness.light,
|
||||||
title: Obx(() {
|
statusBarIconBrightness: Brightness.light,
|
||||||
return Text(state.name.value,
|
statusBarBrightness: Brightness.light,
|
||||||
style:
|
),
|
||||||
TextStyle(fontSize: 14.sp, color: const Color(0xFF333333)));
|
child: OrientationBuilder(
|
||||||
}),
|
builder: (BuildContext context, Orientation orientation) {
|
||||||
centerTitle: true,
|
return Scaffold(
|
||||||
leading: IconButton(
|
backgroundColor: const Color.fromRGBO(245, 245, 245, 1),
|
||||||
icon: const Icon(Icons.arrow_back_ios, color: Colors.black),
|
appBar: AppBar(
|
||||||
onPressed: () {
|
backgroundColor: Colors.white,
|
||||||
Get.back();
|
title: Obx(() {
|
||||||
},
|
return Text(state.name.value,
|
||||||
|
style:
|
||||||
|
TextStyle(fontSize: 14.sp, color: const Color(0xFF333333)));
|
||||||
|
}),
|
||||||
|
centerTitle: true,
|
||||||
|
leading: IconButton(
|
||||||
|
icon: const Icon(Icons.arrow_back_ios, color: Colors.black),
|
||||||
|
onPressed: () {
|
||||||
|
Get.back();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
actions: const [
|
||||||
|
ReturnToHomepage(),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
actions: const [
|
body: Padding(
|
||||||
ReturnToHomepage(),
|
padding: EdgeInsets.symmetric(vertical: 14.r, horizontal: 14.r),
|
||||||
],
|
child: Obx(() {
|
||||||
),
|
return EasyRefresh(
|
||||||
body: Padding(
|
firstRefresh: false,
|
||||||
padding: EdgeInsets.symmetric(vertical: 14.r, horizontal: 14.r),
|
taskIndependence: true,
|
||||||
child: Obx(() {
|
controller: logic.refreshController,
|
||||||
return EasyRefresh(
|
header: MaterialHeader(),
|
||||||
firstRefresh: false,
|
footer: TaurusFooter(),
|
||||||
taskIndependence: true,
|
onRefresh: () async {
|
||||||
controller: logic.refreshController,
|
return logic.getList();
|
||||||
header: MaterialHeader(),
|
},
|
||||||
footer: TaurusFooter(),
|
child: state.completed.value
|
||||||
onRefresh: () async {
|
? Utils.isPad()
|
||||||
return logic.getList();
|
? GridView(
|
||||||
},
|
gridDelegate:
|
||||||
child: state.completed.value
|
SliverGridDelegateWithFixedCrossAxisCount(
|
||||||
? Utils.isPad()
|
crossAxisCount: 2, //横轴三个子widget
|
||||||
? GridView(
|
mainAxisSpacing: 10.h,
|
||||||
gridDelegate:
|
crossAxisSpacing: 6.w,
|
||||||
SliverGridDelegateWithFixedCrossAxisCount(
|
childAspectRatio: 1.48 //宽高比为1时,子widget
|
||||||
crossAxisCount: 2, //横轴三个子widget
|
),
|
||||||
mainAxisSpacing: 10.h,
|
children: state.classList.map((taskItem) {
|
||||||
crossAxisSpacing: 6.w,
|
return CompletedAnnotateItem(
|
||||||
childAspectRatio: 1.48 //宽高比为1时,子widget
|
taskItem: taskItem,
|
||||||
),
|
logic: logic,
|
||||||
children: state.classList.map((taskItem) {
|
name: state.name.value,
|
||||||
return CompletedAnnotateItem(
|
);
|
||||||
taskItem: taskItem,
|
}).toList(),
|
||||||
logic: logic,
|
)
|
||||||
name: state.name.value,
|
: ListView.builder(
|
||||||
);
|
itemCount: state.classList.length,
|
||||||
}).toList(),
|
itemBuilder: (context, index) {
|
||||||
)
|
AnnotatedClass taskItem = state.classList[index];
|
||||||
: ListView.builder(
|
return CompletedAnnotateItem(
|
||||||
itemCount: state.classList.length,
|
taskItem: taskItem,
|
||||||
itemBuilder: (context, index) {
|
logic: logic,
|
||||||
AnnotatedClass taskItem = state.classList[index];
|
name: state.name.value,
|
||||||
return CompletedAnnotateItem(
|
);
|
||||||
taskItem: taskItem,
|
})
|
||||||
logic: logic,
|
: Utils.isPad()
|
||||||
name: state.name.value,
|
? MasonryGridView.count(
|
||||||
);
|
crossAxisCount: 2, //几列
|
||||||
})
|
mainAxisSpacing: 4.w, // 间距
|
||||||
: Utils.isPad()
|
crossAxisSpacing: 4.h, // 纵向间距?
|
||||||
? MasonryGridView.count(
|
itemCount: state.classList.length,
|
||||||
crossAxisCount: 2, //几列
|
itemBuilder: (context, index) {
|
||||||
mainAxisSpacing: 4.w, // 间距
|
AnnotatedClass item = state.classList[index];
|
||||||
crossAxisSpacing: 4.h, // 纵向间距?
|
return AnnotateItem(
|
||||||
itemCount: state.classList.length,
|
homeworkId: homeworkId,
|
||||||
itemBuilder: (context, index) {
|
item: item,
|
||||||
AnnotatedClass item = state.classList[index];
|
font: 11.sp,
|
||||||
return AnnotateItem(
|
name: state.name.value,
|
||||||
homeworkId: homeworkId,
|
logic: logic,
|
||||||
item: item,
|
);
|
||||||
font: 11.sp,
|
},
|
||||||
name: state.name.value,
|
)
|
||||||
logic: logic,
|
: ListView.builder(
|
||||||
);
|
itemCount: state.classList.length,
|
||||||
},
|
itemBuilder: (context, index) {
|
||||||
)
|
AnnotatedClass item = state.classList[index];
|
||||||
: ListView.builder(
|
return AnnotateItem(
|
||||||
itemCount: state.classList.length,
|
homeworkId: homeworkId,
|
||||||
itemBuilder: (context, index) {
|
item: item,
|
||||||
AnnotatedClass item = state.classList[index];
|
font: 12.sp,
|
||||||
return AnnotateItem(
|
name: state.name.value,
|
||||||
homeworkId: homeworkId,
|
logic: logic,
|
||||||
item: item,
|
);
|
||||||
font: 12.sp,
|
}));
|
||||||
name: state.name.value,
|
}),
|
||||||
logic: logic,
|
),
|
||||||
);
|
);
|
||||||
}));
|
}),
|
||||||
}),
|
);
|
||||||
),
|
|
||||||
);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
|
|
@ -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(
|
||||||
|
|
@ -218,6 +189,36 @@ class _BottomAnnotationSwitchJobState extends State<BottomAnnotationSwitch> with
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Container(width: 0.3.w, height: double.infinity, color: Colors.white),
|
||||||
|
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),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -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,30 +48,40 @@ class _HomeworkReviewState extends State<HomeworkReview> {
|
||||||
_homeLogicController.getList();
|
_homeLogicController.getList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: SafeArea(
|
child: AnnotatedRegion(
|
||||||
child: Scaffold(
|
value: const SystemUiOverlayStyle(
|
||||||
appBar: AppBar(
|
systemNavigationBarColor: Color(0xFF000000),
|
||||||
// titleSpacing: 0,
|
systemNavigationBarDividerColor: null,
|
||||||
leading: IconButton(icon: const Icon(Icons.arrow_back_ios), onPressed: () => Get.back()),
|
statusBarColor: Colors.transparent,
|
||||||
iconTheme: const IconThemeData(color: Colors.black),
|
systemNavigationBarIconBrightness: Brightness.light,
|
||||||
title: quickText(sateData.param.value.homeworkName),
|
statusBarIconBrightness: Brightness.light,
|
||||||
backgroundColor: Colors.white,
|
statusBarBrightness: Brightness.light,
|
||||||
elevation: 0,
|
),
|
||||||
actions: [const FavoriteWidget(), SizedBox(width: 5.w), const ReturnToHomepage()],
|
child: SafeArea(
|
||||||
),
|
child: Scaffold(
|
||||||
body: SafeArea(
|
appBar: AppBar(
|
||||||
child: Column(
|
// titleSpacing: 0,
|
||||||
children: [
|
leading: IconButton(icon: const Icon(Icons.arrow_back_ios), onPressed: () => Get.back()),
|
||||||
// 下拉切换
|
iconTheme: const IconThemeData(color: Colors.black),
|
||||||
const DropdownSwitchStudentsType(),
|
title: quickText(sateData.param.value.homeworkName),
|
||||||
SizedBox(height: 1.h),
|
backgroundColor: Colors.white,
|
||||||
const Expanded(child: QuestionPaperView()),
|
elevation: 0,
|
||||||
const BottomAnnotationSwitch()
|
actions: [const FavoriteWidget(), SizedBox(width: 5.w), const ReturnToHomepage()],
|
||||||
],
|
|
||||||
),
|
),
|
||||||
|
body: SafeArea(
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
// 下拉切换
|
||||||
|
const DropdownSwitchStudentsType(),
|
||||||
|
SizedBox(height: 1.h),
|
||||||
|
const Expanded(child: QuestionPaperView()),
|
||||||
|
const BottomAnnotationSwitch()
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// floatingActionButton: const ButtonFloatingAction(),
|
||||||
|
// floatingActionButtonLocation: FloatingActionButtonLocation.startFloat,
|
||||||
),
|
),
|
||||||
// floatingActionButton: const ButtonFloatingAction(),
|
|
||||||
// floatingActionButtonLocation: FloatingActionButtonLocation.startFloat,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||