null safety

This commit is contained in:
phyothandar
2021-09-10 16:48:21 +06:30
parent 03c5fc5016
commit bb4f4ad7c2
40 changed files with 393 additions and 352 deletions

View File

@@ -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!);
}
}
}