List rows: a little more vertical room in the shared row
This commit is contained in:
@@ -17,9 +17,15 @@ const double kAppListRowMinimalWidth = 160;
|
||||
|
||||
/// The rows' horizontal inset and the gap after the avatar.
|
||||
const double kAppListRowInset = 16;
|
||||
const double _avatarGap = 12;
|
||||
const double _avatarGap = 14;
|
||||
const double _compactAvatarGap = 8;
|
||||
|
||||
/// The rows' vertical breathing room: the padding above and below the
|
||||
/// content and the gap between the title and the lines under it. Rows stay
|
||||
/// content-driven; these only space them out so they are easier to hit.
|
||||
const double kAppListRowVerticalPadding = 13;
|
||||
const double _lineGap = 4;
|
||||
|
||||
/// Keys on a row's highlight surface and inset divider, for tests.
|
||||
const appListRowSurfaceKey = ValueKey<String>('app-list-row-surface');
|
||||
const appListRowDividerKey = ValueKey<String>('app-list-row-divider');
|
||||
@@ -135,8 +141,8 @@ class AppListRow extends StatelessWidget {
|
||||
padding: EdgeInsetsDirectional.only(
|
||||
start: start,
|
||||
end: showMenu ? 4 : kAppListRowInset,
|
||||
top: 10,
|
||||
bottom: 10,
|
||||
top: kAppListRowVerticalPadding,
|
||||
bottom: kAppListRowVerticalPadding,
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
@@ -285,7 +291,7 @@ class AppListRow extends StatelessWidget {
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [titleLine, const SizedBox(height: 2), timeLine],
|
||||
children: [titleLine, const SizedBox(height: _lineGap), timeLine],
|
||||
);
|
||||
}
|
||||
return Column(
|
||||
@@ -293,7 +299,7 @@ class AppListRow extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
titleLine,
|
||||
const SizedBox(height: 2),
|
||||
const SizedBox(height: _lineGap),
|
||||
Row(
|
||||
children: [
|
||||
if (subtitleLeading != null)
|
||||
|
||||
Reference in New Issue
Block a user