Skip to content

Searchbar style fix#326

Merged
redbrogdon merged 8 commits intoflutter:masterfrom
jurgenizer:searchbar-style-fix
Feb 25, 2020
Merged

Searchbar style fix#326
redbrogdon merged 8 commits intoflutter:masterfrom
jurgenizer:searchbar-style-fix

Conversation

@jurgenizer
Copy link
Copy Markdown
Contributor

A styling fix to remove the white area behind the CupertinoTextField.
The fix makes search bar look like default iOS search bar.

before:
image1

after:
image0

Copy link
Copy Markdown
Contributor

@redbrogdon redbrogdon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jurgenizer, thanks for submitting a PR! I've pinged a couple engineers who work with our Cupertino package to get more domain expertise for the review.

ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 8;
DEVELOPMENT_TEAM = "";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These lines can just be taken out.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lines removed

Comment thread veggieseasons/lib/widgets/search_bar.dart Outdated
@redbrogdon
Copy link
Copy Markdown
Contributor

Ah, it looks like our automated tests have flagged the formatting in search_bar.dart. It looks like one of the new lines isn't indented correctly. Just run flutter format on that file and it'll be corrected.

Comment thread veggieseasons/lib/widgets/search_bar.dart Outdated
child: CupertinoTextField(
controller: controller,
focusNode: focusNode,
decoration: BoxDecoration(),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the documentation decoration is nullable. So:

Suggested change
decoration: BoxDecoration(),
decoration: null,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I updated it now

@redbrogdon
Copy link
Copy Markdown
Contributor

Awesome. Sounds like we've got the right change. @jurgenizer, I think there are still some changes in the project file that need to be taken out. Other than that, though, this looks ready to land!

Copy link
Copy Markdown
Contributor

@redbrogdon redbrogdon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting! I'm going to land this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants