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.
This commit is contained in:
Vishesh Handa
2020-03-12 14:38:26 +01:00
parent e352f1f9c9
commit 97cea0d8f9

View File

@ -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(