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, crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ children: [
AppHeader(title: $strings.artifactsSearchTitleBrowse, subtitle: wonder.title), AppHeader(title: $strings.artifactsSearchTitleBrowse, subtitle: wonder.title),
Gap($styles.insets.xs), Container(
Padding( color: $styles.colors.black,
padding: EdgeInsets.symmetric(horizontal: $styles.insets.sm), padding: EdgeInsets.fromLTRB($styles.insets.sm, $styles.insets.sm, $styles.insets.sm, 0),
child: _SearchInput(onSubmit: _handleSearchSubmitted, wonder: wonder), child: _SearchInput(onSubmit: _handleSearchSubmitted, wonder: wonder),
), ),
Gap($styles.insets.sm),
Container( Container(
color: $styles.colors.black, color: $styles.colors.black,
padding: EdgeInsets.all($styles.insets.xs * 1.5), 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), padding: EdgeInsets.symmetric(vertical: $styles.insets.xs),
child: Row( child: Row(
children: [ 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), Gap($styles.insets.xs),
Icon(Icons.edit_calendar_outlined, color: $styles.colors.accent1, size: $styles.insets.md), 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); double safeBottom = max($styles.insets.sm, MediaQuery.of(context).padding.bottom);
List<Widget> timelineGrid = List.generate(5, (_) => Container(width: 1, color: $styles.colors.black)); 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 captionTextStyle = $styles.text.bodySmall.copyWith(color: $styles.colors.greyMedium);
final startYr = startYear.round(), endYr = endYear.round(); final startYr = startYear.round(), endYr = endYear.round();

View File

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