mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
NoteTile: Make it prettier
Decrease the font size for the header and reduce some spacing. It's finally starting to look somewhat okay.
This commit is contained in:
@ -41,14 +41,15 @@ class NoteTile extends StatelessWidget {
|
|||||||
.copyWith(fontSize: textTheme.title.fontSize * 0.80),
|
.copyWith(fontSize: textTheme.title.fontSize * 0.80),
|
||||||
),
|
),
|
||||||
if (note.title != null && note.title.isNotEmpty)
|
if (note.title != null && note.title.isNotEmpty)
|
||||||
const SizedBox(height: 12.0),
|
const SizedBox(height: 8.0),
|
||||||
Flexible(
|
Flexible(
|
||||||
flex: 1,
|
flex: 1,
|
||||||
child: Text(
|
child: Text(
|
||||||
body,
|
body,
|
||||||
maxLines: 30,
|
maxLines: 30,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: textTheme.subhead,
|
style: textTheme.subhead
|
||||||
|
.copyWith(fontSize: textTheme.subhead.fontSize * 0.90),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user