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

Automatic change of overlayStyle after calling CupertinoScaffold.showCupertinoModalBottomSheet #419

Open
HE-LU opened this issue Jul 22, 2024 · 1 comment

Comments

@HE-LU
Copy link

HE-LU commented Jul 22, 2024

@jamesblasco Hey, I am solving an issue with CupertinoScaffold.showCupertinoModalBottomSheet.

This builder will automatically force a new overlayStyle, leaving me no option to keep the one I have currently set. (I want to use transparent systemNavigationBarColor. Calling this show method will always force new light or dark style, overriding anything I have set.).

I would love to introduce a new PR for you to solve this issue for me. My question would be, what was the reasoning for deprecating overlayStyle parameter? I can imagine that I could use this parameter to solve my issue, or to introduce completely new parameter like overrideOverlayStyle defaulting to true. Actually, I probably do not see any clear solution for handling this case.

Any ideas, please?

@raccoondev85
Copy link

wrap the child widget with AnnotatedRegion.

builder: (context) => AnnotatedRegion<SystemUiOverlayStyle>( value: overlayStyle, child: child, ),

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

No branches or pull requests

2 participants