change page navigation
This commit is contained in:
@@ -9,6 +9,7 @@ import 'package:fcs/pages/widgets/bottom_up_page_route.dart';
|
||||
import 'package:fcs/pages/widgets/input_text.dart';
|
||||
import 'package:fcs/pages/widgets/my_data_table.dart';
|
||||
import 'package:fcs/pages/widgets/progress.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
@@ -69,7 +70,7 @@ class _ShipmentRatesEditState extends State<ShipmentRatesEdit> {
|
||||
centerTitle: true,
|
||||
leading: new IconButton(
|
||||
icon: new Icon(
|
||||
Icons.close,
|
||||
CupertinoIcons.back,
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
),
|
||||
@@ -136,7 +137,8 @@ class _ShipmentRatesEditState extends State<ShipmentRatesEdit> {
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
BottomUpPageRoute(CargoEditor()),
|
||||
CupertinoPageRoute(
|
||||
builder: (context) => CargoEditor()),
|
||||
);
|
||||
},
|
||||
label: Text(
|
||||
@@ -199,7 +201,8 @@ class _ShipmentRatesEditState extends State<ShipmentRatesEdit> {
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
BottomUpPageRoute(CustomEditor()),
|
||||
CupertinoPageRoute(
|
||||
builder: (context) => CustomEditor()),
|
||||
);
|
||||
},
|
||||
label: Text(
|
||||
@@ -263,7 +266,9 @@ class _ShipmentRatesEditState extends State<ShipmentRatesEdit> {
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
BottomUpPageRoute(DiscountByWeightEditor()),
|
||||
CupertinoPageRoute(
|
||||
builder: (context) =>
|
||||
DiscountByWeightEditor()),
|
||||
);
|
||||
},
|
||||
label: Text(
|
||||
@@ -297,7 +302,7 @@ class _ShipmentRatesEditState extends State<ShipmentRatesEdit> {
|
||||
onSelectChanged: (selected) {
|
||||
Navigator.push(
|
||||
context,
|
||||
BottomUpPageRoute(CargoEditor(rate: r)),
|
||||
CupertinoPageRoute(builder: (context) => CargoEditor(rate: r)),
|
||||
);
|
||||
},
|
||||
cells: [
|
||||
@@ -325,7 +330,7 @@ class _ShipmentRatesEditState extends State<ShipmentRatesEdit> {
|
||||
onSelectChanged: (selected) {
|
||||
Navigator.push(
|
||||
context,
|
||||
BottomUpPageRoute(CustomEditor(custom: c)),
|
||||
CupertinoPageRoute(builder: (context) => CustomEditor(custom: c)),
|
||||
);
|
||||
},
|
||||
cells: [
|
||||
@@ -353,7 +358,7 @@ class _ShipmentRatesEditState extends State<ShipmentRatesEdit> {
|
||||
onSelectChanged: (selected) {
|
||||
// Navigator.push(
|
||||
// context,
|
||||
// BottomUpPageRoute(CargoEditor(rate: r)),
|
||||
// CupertinoPageRoute(builder: (context) => CargoEditor(rate: r)),
|
||||
// );
|
||||
},
|
||||
cells: [
|
||||
|
||||
Reference in New Issue
Block a user