Tweaks to search page

This commit is contained in:
Shawn 2022-10-27 10:24:39 -06:00
parent b5157d14ce
commit fbf7e055b7
3 changed files with 16 additions and 20 deletions

View File

@ -81,12 +81,14 @@ class _InfoRow extends StatelessWidget {
padding: EdgeInsets.only(bottom: $styles.insets.sm), padding: EdgeInsets.only(bottom: $styles.insets.sm),
child: Row(children: [ child: Row(children: [
Expanded( Expanded(
flex: 40,
child: Text( child: Text(
label.toUpperCase(), label.toUpperCase(),
style: $styles.text.titleFont.copyWith(color: $styles.colors.accent2), style: $styles.text.titleFont.copyWith(color: $styles.colors.accent2),
), ),
), ),
Expanded( Expanded(
flex: 60,
child: Text( child: Text(
value.isEmpty ? '--' : value, value.isEmpty ? '--' : value,
style: $styles.text.body.copyWith(color: $styles.colors.offWhite), style: $styles.text.body.copyWith(color: $styles.colors.offWhite),

View File

@ -74,8 +74,6 @@ class _ExpandingTimeRangeSelectorState extends State<ExpandingTimeRangeSelector>
openBuilder: (_) => SizedBox( openBuilder: (_) => SizedBox(
width: constraints.maxWidth - pad * 2, width: constraints.maxWidth - pad * 2,
child: Center( child: Center(
child: SizedBox(
width: $styles.sizes.maxContentWidth,
child: _OpenedTimeRange( child: _OpenedTimeRange(
startYear: widget.startYear, startYear: widget.startYear,
endYear: widget.endYear, endYear: widget.endYear,
@ -89,7 +87,6 @@ class _ExpandingTimeRangeSelectorState extends State<ExpandingTimeRangeSelector>
), ),
), ),
), ),
),
); );
}); });
} }

View File

@ -10,8 +10,6 @@ class _SearchInput extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return LayoutBuilder( return LayoutBuilder(
builder: (ctx, constraints) => Center( builder: (ctx, constraints) => Center(
child: SizedBox(
width: $styles.sizes.maxContentWidth,
child: Autocomplete<String>( child: Autocomplete<String>(
displayStringForOption: (data) => data, displayStringForOption: (data) => data,
onSelected: onSubmit, onSelected: onSubmit,
@ -21,7 +19,6 @@ class _SearchInput extends StatelessWidget {
fieldViewBuilder: _buildInput, fieldViewBuilder: _buildInput,
), ),
), ),
),
); );
} }