Note: Rename 'createdAt' to 'created'

My notes already use the key 'created', and I don't want to have to
change that.
This commit is contained in:
Vishesh Handa
2018-06-01 18:59:06 +02:00
parent fdf8c06c24
commit eb2c9eb33f
5 changed files with 15 additions and 15 deletions

View File

@ -85,11 +85,11 @@ class NoteViewer extends StatelessWidget {
}
Widget _buildHeader(BuildContext context) {
var dateStr = DateFormat('MMM dd, yyyy').format(note.createdAt);
var timeStr = DateFormat('EEEE H:m').format(note.createdAt);
var dateStr = DateFormat('MMM dd, yyyy').format(note.created);
var timeStr = DateFormat('EEEE H:m').format(note.created);
var bigNum = new Text(
note.createdAt.day.toString(),
note.created.day.toString(),
style: TextStyle(fontSize: 40.0),
);