change page navigation
This commit is contained in:
@@ -12,6 +12,7 @@ import 'package:fcs/pages/widgets/multi_img_controller.dart';
|
||||
import 'package:fcs/pages/widgets/multi_img_file.dart';
|
||||
import 'package:fcs/pages/widgets/progress.dart';
|
||||
import 'package:fcs/pages/widgets/status_tree.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_icons/flutter_icons.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
@@ -90,7 +91,7 @@ class _ReceivingInfoState extends State<ReceivingInfo> {
|
||||
appBar: AppBar(
|
||||
centerTitle: true,
|
||||
leading: new IconButton(
|
||||
icon: new Icon(Icons.close, color: primaryColor, size: 30),
|
||||
icon: new Icon(CupertinoIcons.back, color: primaryColor, size: 30),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
),
|
||||
shadowColor: Colors.transparent,
|
||||
@@ -144,9 +145,10 @@ class _ReceivingInfoState extends State<ReceivingInfo> {
|
||||
_edit() async {
|
||||
await Navigator.push(
|
||||
context,
|
||||
BottomUpPageRoute(ReceivingEditor(
|
||||
package: widget.package,
|
||||
)),
|
||||
CupertinoPageRoute(
|
||||
builder: (context) => ReceivingEditor(
|
||||
package: widget.package,
|
||||
)),
|
||||
);
|
||||
PackageModel packageModel =
|
||||
Provider.of<PackageModel>(context, listen: false);
|
||||
|
||||
Reference in New Issue
Block a user