From d5484502df47f6ed1eb3ccb0c467ac1dde2d1917 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Thu, 19 Mar 2020 02:59:59 +0100 Subject: [PATCH] Ensure all ListTiles in FolderView are of the same height It looks way neater this way. https://github.com/flutter/flutter/issues/31134 --- lib/folder_views/journal_view.dart | 2 +- lib/folder_views/standard_view.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/folder_views/journal_view.dart b/lib/folder_views/journal_view.dart index f3f9f6df..cda7e702 100644 --- a/lib/folder_views/journal_view.dart +++ b/lib/folder_views/journal_view.dart @@ -62,7 +62,7 @@ class JournalView extends StatelessWidget { var children = [ const SizedBox(height: 8.0), Text( - note.summary, + note.summary + '\n', // no minLines option maxLines: 3, overflow: TextOverflow.ellipsis, style: textTheme.body1, diff --git a/lib/folder_views/standard_view.dart b/lib/folder_views/standard_view.dart index 3091daf7..c9ae0449 100644 --- a/lib/folder_views/standard_view.dart +++ b/lib/folder_views/standard_view.dart @@ -97,7 +97,7 @@ class StandardView extends StatelessWidget { var summary = [ const SizedBox(height: 8.0), Text( - note.summary, + note.summary + '\n', // no minLines option maxLines: 3, overflow: TextOverflow.ellipsis, style: textTheme.body1,