new ui model integration

This commit is contained in:
Tito Arrigo
2023-09-29 11:49:31 +02:00
committed by Joe Küng
parent cd1f6238f8
commit 05d8c25b3e
4 changed files with 84 additions and 30 deletions

View File

@@ -6,14 +6,14 @@ const String promemoriaTable = 'promemoria';
class Promemoria {
String id = '';
String title;
String creationDate;
String lastModificationDate;
String expirationDate;
String arrayPromemoria;
String description;
String priority;
String color;
String title = '';
String creationDate = '';
String lastModificationDate = '';
String expirationDate = '';
String arrayPromemoria = '';
String description = '';
String priority = '';
String color = '';
Promemoria(
this.id,
@@ -34,7 +34,23 @@ class Promemoria {
this.arrayPromemoria,
this.description,
this.priority,
this.color);
this.color
);
Promemoria.today(
this.title,
this.creationDate,
this.lastModificationDate,
this.expirationDate,
this.description,
);
Promemoria.inbox(
this.title,
this.creationDate,
this.lastModificationDate,
this.description,
);
Map<String, dynamic> toMap() {
return {