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),
child: Row(children: [
Expanded(
flex: 40,
child: Text(
label.toUpperCase(),
style: $styles.text.titleFont.copyWith(color: $styles.colors.accent2),
),
),
Expanded(
flex: 60,
child: Text(
value.isEmpty ? '--' : value,
style: $styles.text.body.copyWith(color: $styles.colors.offWhite),

View File

@ -74,8 +74,6 @@ class _ExpandingTimeRangeSelectorState extends State<ExpandingTimeRangeSelector>
openBuilder: (_) => SizedBox(
width: constraints.maxWidth - pad * 2,
child: Center(
child: SizedBox(
width: $styles.sizes.maxContentWidth,
child: _OpenedTimeRange(
startYear: widget.startYear,
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) {
return LayoutBuilder(
builder: (ctx, constraints) => Center(
child: SizedBox(
width: $styles.sizes.maxContentWidth,
child: Autocomplete<String>(
displayStringForOption: (data) => data,
onSelected: onSubmit,
@ -21,7 +19,6 @@ class _SearchInput extends StatelessWidget {
fieldViewBuilder: _buildInput,
),
),
),
);
}