Commit 82eff5abfd72ad32e40eff83afcf08d923f6dbf5

Authored by wdn127929
1 parent 3d95a5a4

ui

@@ -2,6 +2,7 @@ import 'package:flutter/material.dart'; @@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
2 import 'package:one_key/widgets/system_app_bar.dart'; 2 import 'package:one_key/widgets/system_app_bar.dart';
3 3
4 import '../../../res/colors.dart'; 4 import '../../../res/colors.dart';
  5 +import '../../../route/navigator_util.dart';
5 import '../../../utils/screen_util.dart'; 6 import '../../../utils/screen_util.dart';
6 import '../../../utils/utils.dart'; 7 import '../../../utils/utils.dart';
7 import '../../../widgets/MyDivider.dart'; 8 import '../../../widgets/MyDivider.dart';
@@ -287,7 +288,7 @@ class _FinalPlanDishPageState extends State<FinalPlanDishPage> { @@ -287,7 +288,7 @@ class _FinalPlanDishPageState extends State<FinalPlanDishPage> {
287 decoration: BoxDecoration( 288 decoration: BoxDecoration(
288 borderRadius: BorderRadius.circular(r(5)), 289 borderRadius: BorderRadius.circular(r(5)),
289 border: Border.all( 290 border: Border.all(
290 - width: w(1), color: MyColours.color_515151)), 291 + width: w(1), color: MyColours.color_DBDBDB)),
291 child: TextField( 292 child: TextField(
292 maxLines: 4, 293 maxLines: 4,
293 // controller: 294 // controller:
@@ -485,7 +486,7 @@ class _FinalPlanDishPageState extends State<FinalPlanDishPage> { @@ -485,7 +486,7 @@ class _FinalPlanDishPageState extends State<FinalPlanDishPage> {
485 // mainAxisAlignment: MainAxisAlignment.spaceBetween, 486 // mainAxisAlignment: MainAxisAlignment.spaceBetween,
486 children: [ 487 children: [
487 RoundButton( 488 RoundButton(
488 - text: '生成预览', 489 + text: '返回选菜',
489 gradientStart: MyColours.color_ffffff, 490 gradientStart: MyColours.color_ffffff,
490 gradientEnd: MyColours.color_ffffff, 491 gradientEnd: MyColours.color_ffffff,
491 borderColor: MyColours.color_438E93, 492 borderColor: MyColours.color_438E93,
@@ -496,7 +497,12 @@ class _FinalPlanDishPageState extends State<FinalPlanDishPage> { @@ -496,7 +497,12 @@ class _FinalPlanDishPageState extends State<FinalPlanDishPage> {
496 fontSize: 32, 497 fontSize: 32,
497 isBold: false, 498 isBold: false,
498 onPressed: () { 499 onPressed: () {
499 - // NavigatorUtil.goFinalPlanDishPage(context); 500 + //如果是创建新排菜进入的,则返回两次
  501 + // Navigator.pop(context);
  502 + // Navigator.pop(context);
  503 + //如果是从复用和修改进入的,则直接push到排菜firstpage
  504 +
  505 + NavigatorUtil.goPlanNewDishFirstPage(context);
500 }, 506 },
501 ), 507 ),
502 HEmptyView(30), 508 HEmptyView(30),
@@ -510,7 +516,7 @@ class _FinalPlanDishPageState extends State<FinalPlanDishPage> { @@ -510,7 +516,7 @@ class _FinalPlanDishPageState extends State<FinalPlanDishPage> {
510 fontSize: 36, 516 fontSize: 36,
511 isBold: false, 517 isBold: false,
512 onPressed: () { 518 onPressed: () {
513 - // NavigatorUtil.goFinalPlanDishPage(context); 519 + NavigatorUtil.goMyPlanDishHomePage(context,replace: true);
514 }, 520 },
515 ), 521 ),
516 ) 522 )
@@ -117,6 +117,9 @@ class _MyPlanDishHomePageState extends State<MyPlanDishHomePage> { @@ -117,6 +117,9 @@ class _MyPlanDishHomePageState extends State<MyPlanDishHomePage> {
117 textColor: MyColours.color_438E93, 117 textColor: MyColours.color_438E93,
118 radius: r(5), 118 radius: r(5),
119 isBold: false, 119 isBold: false,
  120 + onPressed: () {
  121 + NavigatorUtil.goFinalPlanDishPage(context);
  122 + },
120 ), 123 ),
121 HEmptyView(20), 124 HEmptyView(20),
122 RoundButton( 125 RoundButton(
@@ -130,6 +133,9 @@ class _MyPlanDishHomePageState extends State<MyPlanDishHomePage> { @@ -130,6 +133,9 @@ class _MyPlanDishHomePageState extends State<MyPlanDishHomePage> {
130 textColor: MyColours.color_438E93, 133 textColor: MyColours.color_438E93,
131 radius: r(5), 134 radius: r(5),
132 isBold: false, 135 isBold: false,
  136 + onPressed: () {
  137 + NavigatorUtil.goFinalPlanDishPage(context);
  138 + },
133 ) 139 )
134 ], 140 ],
135 ) 141 )
@@ -199,7 +199,7 @@ class _PlanNewDishFirstPageState extends State<PlanNewDishFirstPage> { @@ -199,7 +199,7 @@ class _PlanNewDishFirstPageState extends State<PlanNewDishFirstPage> {
199 padding: EdgeInsets.only( 199 padding: EdgeInsets.only(
200 top: w(12), bottom: w(25), left: w(45), right: w(45)), 200 top: w(12), bottom: w(25), left: w(45), right: w(45)),
201 child: RoundButton( 201 child: RoundButton(
202 - text: '菜单点菜', 202 + text: '菜单选菜',
203 gradientStart: MyColours.color_438E93, 203 gradientStart: MyColours.color_438E93,
204 gradientEnd: MyColours.color_438E93, 204 gradientEnd: MyColours.color_438E93,
205 width: double.infinity, 205 width: double.infinity,