add pickups

This commit is contained in:
Sai Naw Wun
2020-05-31 15:00:11 +06:30
parent d5847722d8
commit 3f6a66b887
57 changed files with 1368 additions and 1236 deletions

View File

@@ -8,6 +8,7 @@ class PickUp {
int weight;
String address;
String status;
DateTime date;
PickUp(
{this.id,
@@ -18,7 +19,10 @@ class PickUp {
this.numberOfPackage,
this.weight,
this.address,
this.status});
this.status,
this.date});
int get last => DateTime.now().difference(date).inDays;
factory PickUp.fromMap(Map<String, dynamic> map, String id) {
return PickUp(