批阅按钮位置修改

This commit is contained in:
machuanyu 2024-10-31 15:15:51 +08:00
parent ee8cef3ddc
commit a61f52e25f
1 changed files with 30 additions and 29 deletions

View File

@ -79,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(
@ -122,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)),
),
),
),
], ],
), ),
), ),
@ -141,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(
@ -170,19 +183,7 @@ 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(
onPressed: () =>
easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.allWrongRating(context)),
child: quickText('全 错', color: Colors.white, size: 12.sp),
),
),
),
], ],
), ),
), ),
@ -199,8 +200,8 @@ class _BottomAnnotationSwitchJobState extends State<BottomAnnotationSwitch> with
width: double.infinity, width: double.infinity,
height: double.infinity, height: double.infinity,
child: TextButton( child: TextButton(
onPressed: () => easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.submit(context)), onPressed: () => easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.cancelAllRatings()),
child: quickText('提 交', size: 14.sp, color: Theme.of(context).primaryColor), child: quickText('取 消', size: 14.sp, color: Colors.white),
), ),
), ),
), ),
@ -210,8 +211,8 @@ class _BottomAnnotationSwitchJobState extends State<BottomAnnotationSwitch> with
width: double.infinity, width: double.infinity,
height: double.infinity, height: double.infinity,
child: TextButton( child: TextButton(
onPressed: () => easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.cancelAllRatings()), onPressed: () => easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.submit(context)),
child: quickText('取 消', size: 14.sp, color: Colors.white), child: quickText('提 交', size: 14.sp, color: Theme.of(context).primaryColor),
), ),
), ),
), ),