null safety
This commit is contained in:
@@ -175,7 +175,7 @@ class _ProcessingInfoState extends State<ProcessingInfo> {
|
||||
_package!.photoUrls.length == 0 ? Container() : img,
|
||||
StatusTree(
|
||||
shipmentHistory: _package!.shipmentHistory,
|
||||
currentStatus: _package!.status),
|
||||
currentStatus: _package!.status??""),
|
||||
SizedBox(
|
||||
height: 20,
|
||||
)
|
||||
@@ -222,8 +222,8 @@ class _ProcessingInfoState extends State<ProcessingInfo> {
|
||||
} else {
|
||||
PackageModel packageModel =
|
||||
Provider.of<PackageModel>(context, listen: false);
|
||||
Package p = await packageModel.getPackage(_package!.id);
|
||||
initPackage(p);
|
||||
Package? p = await packageModel.getPackage(_package!.id!);
|
||||
initPackage(p!);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user