From 97cea0d8f90fe501e8ac9a1f7c938b18a0d93f39 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Thu, 12 Mar 2020 14:38:26 +0100 Subject: [PATCH] CardView: Make it a bit prettier It still has a long way to go to being usable. But I rather have in integrated so I can slowly keep improving it, and for some users to try it out. It is clearly marked as experimental. --- lib/folder_views/card_view.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/folder_views/card_view.dart b/lib/folder_views/card_view.dart index a5e5bcb6..24bc28d1 100644 --- a/lib/folder_views/card_view.dart +++ b/lib/folder_views/card_view.dart @@ -66,7 +66,7 @@ class CardView extends StatelessWidget { if (note.title != null && note.title.isNotEmpty) Text( note.title, - maxLines: 1, + maxLines: 2, overflow: TextOverflow.ellipsis, style: textTheme.title, ), @@ -76,7 +76,7 @@ class CardView extends StatelessWidget { body, maxLines: 30, overflow: TextOverflow.ellipsis, - style: textTheme.body1, + style: textTheme.subhead, ), ], crossAxisAlignment: CrossAxisAlignment.start, @@ -87,7 +87,7 @@ class CardView extends StatelessWidget { var tile = Material( borderRadius: borderRadius, type: MaterialType.card, - child: tileContent, + child: Padding(padding: const EdgeInsets.all(4.0), child: tileContent), ); /*var tile = Container(