fix carton
This commit is contained in:
@@ -3,6 +3,7 @@ import 'package:fcs/domain/entities/carton.dart';
|
||||
import 'package:fcs/domain/entities/cargo_type.dart';
|
||||
import 'package:fcs/domain/entities/carton_size.dart';
|
||||
import 'package:fcs/domain/entities/package.dart';
|
||||
import 'package:fcs/domain/entities/user.dart';
|
||||
import 'package:fcs/domain/vo/delivery_address.dart';
|
||||
import 'package:fcs/helpers/theme.dart';
|
||||
import 'package:fcs/pages/carton_size/carton_size_list.dart';
|
||||
@@ -30,7 +31,8 @@ import 'model/carton_model.dart';
|
||||
class PackageCartonEditor extends StatefulWidget {
|
||||
final Carton carton;
|
||||
final bool isNew;
|
||||
PackageCartonEditor({this.carton, this.isNew});
|
||||
final User consignee;
|
||||
PackageCartonEditor({this.carton, this.isNew, this.consignee});
|
||||
|
||||
@override
|
||||
_PackageCartonEditorState createState() => _PackageCartonEditorState();
|
||||
@@ -199,8 +201,10 @@ class _PackageCartonEditorState extends State<PackageCartonEditor> {
|
||||
context,
|
||||
CupertinoPageRoute(
|
||||
builder: (context) => DeliveryAddressSelection(
|
||||
deliveryAddress: _deliveryAddress,
|
||||
deliveryAddresses: this._deliveryAddresses)),
|
||||
deliveryAddress: _deliveryAddress,
|
||||
deliveryAddresses: this._deliveryAddresses,
|
||||
user: widget.consignee,
|
||||
)),
|
||||
);
|
||||
if (d == null) return;
|
||||
setState(() {
|
||||
|
||||
Reference in New Issue
Block a user