Skip to content

Conversation

jurgenizer
Copy link
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
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
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
Contributor Author

Choose a reason for hiding this comment

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

lines removed

@redbrogdon
Copy link
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.

child: CupertinoTextField(
controller: controller,
focusNode: focusNode,
decoration: BoxDecoration(),

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
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
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
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