mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 19:36:25 +08:00
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:
@ -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(
|
||||
|
Reference in New Issue
Block a user