diff --git a/making_school_asignment_app/lib/page/home_page/children/homework_review/components/bottom_operation_bar.dart b/making_school_asignment_app/lib/page/home_page/children/homework_review/components/bottom_operation_bar.dart index bac3e54..56d5b23 100644 --- a/making_school_asignment_app/lib/page/home_page/children/homework_review/components/bottom_operation_bar.dart +++ b/making_school_asignment_app/lib/page/home_page/children/homework_review/components/bottom_operation_bar.dart @@ -79,6 +79,18 @@ class _BottomAnnotationSwitchJobState extends State with Expanded( child: Row( 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( child: SizedBox( @@ -122,18 +134,6 @@ class _BottomAnnotationSwitchJobState extends State 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 with Expanded( child: Row( 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( child: SizedBox( @@ -170,19 +183,7 @@ class _BottomAnnotationSwitchJobState extends State 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 with 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), + onPressed: () => easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.cancelAllRatings()), + child: quickText('取 消', size: 14.sp, color: Colors.white), ), ), ), @@ -210,8 +211,8 @@ class _BottomAnnotationSwitchJobState extends State with 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), + onPressed: () => easyThrottle('homework_bottom_operation_bar_scoring_related', () => _homeworkLogic.submit(context)), + child: quickText('提 交', size: 14.sp, color: Theme.of(context).primaryColor), ), ), ),