add messaging

This commit is contained in:
Sai Naw Wun
2020-09-20 05:34:49 +06:30
parent cc56a18613
commit cb622b004b
38 changed files with 1931 additions and 180 deletions

View File

@@ -1,10 +1,14 @@
class Message {
String id;
String receiverName;
String message;
DateTime date;
String senderName;
bool isMe;
Message({this.receiverName, this.message, this.date, this.senderName,this.isMe});
Message(
{this.receiverName, this.message, this.date, this.senderName, this.isMe});
bool fromToday() {
var now = DateTime.now();
return date.day == now.day &&