Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overwrite CupertinoPicker's default selection overlay #33

Merged
merged 1 commit into from Mar 30, 2021

Conversation

kopasz
Copy link
Contributor

@kopasz kopasz commented Mar 27, 2021

Removed default CupertinoPicker selection overlay introduced in Flutter 2 to adhere to the original design of holo date picker. Fixes #32.

Note: the selectionOverlay property docs say to remove it one can set it to null, but there seems to be a bug in the Flutter framework itself that doesn't allow it when using null safety, so until a fix is rolled out for that issue, we're just going to have to settle for overwriting that property with an empty Container().

Before:
image

After:
image

@kopasz kopasz closed this Mar 27, 2021
@kopasz kopasz reopened this Mar 27, 2021
@sky1095
Copy link

sky1095 commented Mar 30, 2021

@kfiross can you please merge it?

@kfiross
Copy link
Owner

kfiross commented Mar 30, 2021

@sky1095 yep, thanks for the PR!

@kfiross kfiross merged commit 4600d62 into kfiross:master Mar 30, 2021
@sky1095
Copy link

sky1095 commented Apr 7, 2021

Hi @kfiross, even after the merge we can still see the grey background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatic showing background color
3 participants