insert pages

This commit is contained in:
Thinzar Win
2020-05-29 16:14:17 +06:30
parent bad27ba5c4
commit f4823d82f8
30 changed files with 1431 additions and 959 deletions

View File

@@ -8,6 +8,8 @@ class Notification {
String desc;
DateTime time;
bool seen;
String marketPlace;
String status;
Notification(
{this.id,
@@ -16,11 +18,13 @@ class Notification {
this.itemType,
this.desc,
this.time,
this.seen});
this.seen,
this.marketPlace,
this.status});
String get getDesc =>
desc != null && desc.length > 30 ? desc.substring(0, 30) : desc;
bool fromToday() {
var now = DateTime.now();
return time.day == now.day &&

6
lib/vo/shipment.dart Normal file
View File

@@ -0,0 +1,6 @@
class Shipment {
DateTime shipDate;
String shipmentNumber;
String status;
Shipment({this.shipDate, this.shipmentNumber,this.status});
}

View File

@@ -8,6 +8,9 @@ class User {
final String corpId;
final String name;
String phoneNumber;
String fcsID;
String shippingAddress;
String deliveryAddress;
String get phone => phoneNumber != null && phoneNumber.startsWith("959")
? "0${phoneNumber.substring(2)}"
: phoneNumber;
@@ -78,6 +81,9 @@ class User {
this.name,
this.gender,
this.phoneNumber,
this.fcsID,
this.shippingAddress,
this.deliveryAddress,
this.dateofBirth,
this.corpId,
this.roleName,