Todo delete + Debug Logging to User

This commit is contained in:
Sewmina
2022-04-03 07:03:28 +05:30
parent 62ae8bad01
commit b7ce14a558
6 changed files with 559 additions and 377 deletions

View File

@@ -323,7 +323,7 @@ class Dialogs{
}
}
if(journalId < 0){return;}
String title= '${(User.journal[journalId].title!= null && User.journal[journalId].title!.isNotEmpty) ? User.journal[journalId].title : DateFormat('MMMM-dd').format(date)}';
String title= (User.journal[journalId].title!= null && User.journal[journalId].title!.isNotEmpty) ? (User.journal[journalId].title! + ' (${(DateFormat('MMMM-dd').format(date))})') : DateFormat('MMMM-dd').format(date);
String description = User.journal[journalId].description ?? '';
if(description.length > 60){
description = description.substring(0,60) + '...(click more for more)';
@@ -347,13 +347,13 @@ class Dialogs{
onPressed: (){
Navigator.of(context).pop();
},
child: Text('No', style:TextStyle(color: Colors.red)),
child: Text('Back', style:TextStyle(color: Colors.red)),
),
MaterialButton(
onPressed: (){
Navigator.of(context).pop();
},
child: Text('Yes', style:TextStyle(color: Colors.green)),
child: Text('More', style:TextStyle(color: Colors.green)),
)
],
);