fix
This commit is contained in:
@@ -40,7 +40,8 @@ class _ReceivingInfoState extends State<ReceivingInfo> {
|
||||
initPackage(widget.package!);
|
||||
}
|
||||
|
||||
initPackage(Package package) {
|
||||
initPackage(Package? package) {
|
||||
if (package == null) return;
|
||||
multiImgController.setImageUrls = package.photoUrls;
|
||||
setState(() {
|
||||
_package = package;
|
||||
@@ -150,7 +151,7 @@ class _ReceivingInfoState extends State<ReceivingInfo> {
|
||||
PackageModel packageModel =
|
||||
Provider.of<PackageModel>(context, listen: false);
|
||||
var pkg = await packageModel.getPackage(widget.package!.id!);
|
||||
initPackage(pkg!);
|
||||
initPackage(pkg);
|
||||
}
|
||||
|
||||
_delete() {
|
||||
|
||||
Reference in New Issue
Block a user