overlay: minor fix
This commit is contained in:
parent
edd410d854
commit
38c0f0897e
1 changed files with 45 additions and 46 deletions
|
@ -143,57 +143,56 @@ class _FullscreenBottomOverlayContent extends AnimatedWidget {
|
||||||
softWrap: false,
|
softWrap: false,
|
||||||
overflow: TextOverflow.fade,
|
overflow: TextOverflow.fade,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
child: Selector<MediaQueryData, Orientation>(
|
child: SizedBox(
|
||||||
selector: (c, mq) => mq.orientation,
|
width: maxWidth,
|
||||||
builder: (c, orientation, child) {
|
child: Selector<MediaQueryData, Orientation>(
|
||||||
final twoColumns = orientation == Orientation.landscape && maxWidth / 2 > _subRowMinWidth;
|
selector: (c, mq) => mq.orientation,
|
||||||
final subRowWidth = twoColumns ? min(_subRowMinWidth, maxWidth / 2) : maxWidth;
|
builder: (c, orientation, child) {
|
||||||
final positionTitle = [
|
final twoColumns = orientation == Orientation.landscape && maxWidth / 2 > _subRowMinWidth;
|
||||||
if (position != null) position,
|
final subRowWidth = twoColumns ? min(_subRowMinWidth, maxWidth / 2) : maxWidth;
|
||||||
if (entry.title != null) entry.title,
|
final positionTitle = [
|
||||||
].join(' – ');
|
if (position != null) position,
|
||||||
final hasShootingDetails = details != null && !details.isEmpty;
|
if (entry.title != null) entry.title,
|
||||||
return Column(
|
].join(' – ');
|
||||||
mainAxisSize: MainAxisSize.min,
|
final hasShootingDetails = details != null && !details.isEmpty;
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
return Column(
|
||||||
children: [
|
mainAxisSize: MainAxisSize.min,
|
||||||
if (positionTitle.isNotEmpty)
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
SizedBox(
|
children: [
|
||||||
width: maxWidth,
|
if (positionTitle.isNotEmpty) Text(positionTitle, strutStyle: Constants.overflowStrutStyle),
|
||||||
child: Text(positionTitle, strutStyle: Constants.overflowStrutStyle),
|
if (entry.hasGps)
|
||||||
),
|
|
||||||
if (entry.hasGps)
|
|
||||||
Container(
|
|
||||||
padding: const EdgeInsets.only(top: _interRowPadding),
|
|
||||||
width: subRowWidth,
|
|
||||||
child: _LocationRow(entry: entry),
|
|
||||||
),
|
|
||||||
if (twoColumns)
|
|
||||||
Padding(
|
|
||||||
padding: const EdgeInsets.only(top: _interRowPadding),
|
|
||||||
child: Row(
|
|
||||||
children: [
|
|
||||||
Container(width: subRowWidth, child: _DateRow(entry)),
|
|
||||||
if (hasShootingDetails) Container(width: subRowWidth, child: _ShootingRow(details)),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
)
|
|
||||||
else ...[
|
|
||||||
Container(
|
|
||||||
padding: const EdgeInsets.only(top: _interRowPadding),
|
|
||||||
width: subRowWidth,
|
|
||||||
child: _DateRow(entry),
|
|
||||||
),
|
|
||||||
if (hasShootingDetails)
|
|
||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.only(top: _interRowPadding),
|
padding: const EdgeInsets.only(top: _interRowPadding),
|
||||||
width: subRowWidth,
|
width: subRowWidth,
|
||||||
child: _ShootingRow(details),
|
child: _LocationRow(entry: entry),
|
||||||
),
|
),
|
||||||
|
if (twoColumns)
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(top: _interRowPadding),
|
||||||
|
child: Row(
|
||||||
|
children: [
|
||||||
|
Container(width: subRowWidth, child: _DateRow(entry)),
|
||||||
|
if (hasShootingDetails) Container(width: subRowWidth, child: _ShootingRow(details)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
)
|
||||||
|
else ...[
|
||||||
|
Container(
|
||||||
|
padding: const EdgeInsets.only(top: _interRowPadding),
|
||||||
|
width: subRowWidth,
|
||||||
|
child: _DateRow(entry),
|
||||||
|
),
|
||||||
|
if (hasShootingDetails)
|
||||||
|
Container(
|
||||||
|
padding: const EdgeInsets.only(top: _interRowPadding),
|
||||||
|
width: subRowWidth,
|
||||||
|
child: _ShootingRow(details),
|
||||||
|
),
|
||||||
|
],
|
||||||
],
|
],
|
||||||
],
|
);
|
||||||
);
|
},
|
||||||
},
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue