mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 03:19:11 +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(
|
||||
isThreeLine: true,
|
||||
title: titleWidget,
|
||||
trailing: trailing,
|
||||
title: titleRow,
|
||||
subtitle: Column(
|
||||
children: children,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
Reference in New Issue
Block a user