Cleanup artifact search styles

* Fill in entire header black
* Adjust padding
* Adjust font sizes for date range picker
This commit is contained in:
Jared Bell 2023-01-04 22:17:13 -07:00
parent 2106da96ab
commit 602c506452
3 changed files with 6 additions and 7 deletions

View File

@ -86,12 +86,11 @@ class _ArtifactSearchScreenState extends State<ArtifactSearchScreen> with GetItS
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
AppHeader(title: $strings.artifactsSearchTitleBrowse, subtitle: wonder.title),
Gap($styles.insets.xs),
Padding(
padding: EdgeInsets.symmetric(horizontal: $styles.insets.sm),
Container(
color: $styles.colors.black,
padding: EdgeInsets.fromLTRB($styles.insets.sm, $styles.insets.sm, $styles.insets.sm, 0),
child: _SearchInput(onSubmit: _handleSearchSubmitted, wonder: wonder),
),
Gap($styles.insets.sm),
Container(
color: $styles.colors.black,
padding: EdgeInsets.all($styles.insets.xs * 1.5),

View File

@ -109,7 +109,7 @@ class _ClosedTimeRange extends StatelessWidget {
padding: EdgeInsets.symmetric(vertical: $styles.insets.xs),
child: Row(
children: [
Text(text, style: $styles.text.titleFont.copyWith(color: $styles.colors.offWhite)),
Text(text, style: $styles.text.title2.copyWith(color: $styles.colors.offWhite)),
Gap($styles.insets.xs),
Icon(Icons.edit_calendar_outlined, color: $styles.colors.accent1, size: $styles.insets.md),
],
@ -170,7 +170,7 @@ class _OpenedTimeRange extends StatelessWidget {
double safeBottom = max($styles.insets.sm, MediaQuery.of(context).padding.bottom);
List<Widget> timelineGrid = List.generate(5, (_) => Container(width: 1, color: $styles.colors.black));
final headingTextStyle = $styles.text.title1.copyWith(color: $styles.colors.offWhite, fontSize: 18 * $styles.scale);
final headingTextStyle = $styles.text.title1.copyWith(color: $styles.colors.offWhite, fontSize: 20 * $styles.scale);
final captionTextStyle = $styles.text.bodySmall.copyWith(color: $styles.colors.greyMedium);
final startYr = startYear.round(), endYr = endYear.round();

View File

@ -154,7 +154,7 @@ class _SearchInput extends StatelessWidget {
color: $styles.colors.white,
icon: AppIcons.close,
semanticLabel: $strings.searchInputSemanticClear,
size: $styles.insets.lg,
size: $styles.insets.md,
iconSize: $styles.insets.sm,
onPressed: () {
textController.clear();