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)
|
if (note.title != null && note.title.isNotEmpty)
|
||||||
Text(
|
Text(
|
||||||
note.title,
|
note.title,
|
||||||
maxLines: 1,
|
maxLines: 2,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: textTheme.title,
|
style: textTheme.title,
|
||||||
),
|
),
|
||||||
@ -76,7 +76,7 @@ class CardView extends StatelessWidget {
|
|||||||
body,
|
body,
|
||||||
maxLines: 30,
|
maxLines: 30,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: textTheme.body1,
|
style: textTheme.subhead,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
@ -87,7 +87,7 @@ class CardView extends StatelessWidget {
|
|||||||
var tile = Material(
|
var tile = Material(
|
||||||
borderRadius: borderRadius,
|
borderRadius: borderRadius,
|
||||||
type: MaterialType.card,
|
type: MaterialType.card,
|
||||||
child: tileContent,
|
child: Padding(padding: const EdgeInsets.all(4.0), child: tileContent),
|
||||||
);
|
);
|
||||||
|
|
||||||
/*var tile = Container(
|
/*var tile = Container(
|
||||||
|
Reference in New Issue
Block a user