insert pages
This commit is contained in:
@@ -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
6
lib/vo/shipment.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
class Shipment {
|
||||
DateTime shipDate;
|
||||
String shipmentNumber;
|
||||
String status;
|
||||
Shipment({this.shipDate, this.shipmentNumber,this.status});
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user