fix shipment detail click in noti
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user