fix shipment detail click in noti

This commit is contained in:
Sai Naw Wun
2020-10-19 14:02:34 +06:30
parent 9187d668ea
commit 4acc1d9465
6 changed files with 50 additions and 5 deletions

View File

@@ -116,6 +116,21 @@ class FcsShipmentModel extends BaseModel {
return fcsShipments;
}
Future<FcsShipment> getFcsShipment(String id) async {
try {
var snap = await Firestore.instance
.collection("/$fcs_shipment_collection")
.document(id)
.get(source: Source.server);
var fcs = FcsShipment.fromMap(snap.data, snap.documentID);
return fcs;
} catch (e) {
log.warning("Error!! $e");
}
return null;
}
void initUser(user) {
super.initUser(user);
}