Tweaks to search page
This commit is contained in:
parent
b5157d14ce
commit
fbf7e055b7
@ -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),
|
||||||
|
@ -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>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user