mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
Standard Folder View: Align the title with the time correctly
As suggested by the docs it's better to use a Row and align it based on the baseline.
This commit is contained in:
@ -58,10 +58,16 @@ class StandardView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
var titleRow = Row(
|
||||||
|
children: <Widget>[Expanded(child: titleWidget), trailing],
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.baseline,
|
||||||
|
textBaseline: TextBaseline.alphabetic,
|
||||||
|
);
|
||||||
|
|
||||||
var tile = ListTile(
|
var tile = ListTile(
|
||||||
isThreeLine: true,
|
isThreeLine: true,
|
||||||
title: titleWidget,
|
title: titleRow,
|
||||||
trailing: trailing,
|
|
||||||
subtitle: Column(
|
subtitle: Column(
|
||||||
children: children,
|
children: children,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
Reference in New Issue
Block a user