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

BottomSheet shows up in Widgetbook instead of simulated app #190

Closed
jenshor opened this issue May 23, 2022 · 2 comments · Fixed by #197
Closed

BottomSheet shows up in Widgetbook instead of simulated app #190

jenshor opened this issue May 23, 2022 · 2 comments · Fixed by #197
Assignees
Labels
t: bug Something isn't working

Comments

@jenshor
Copy link
Member

jenshor commented May 23, 2022

Description
Currently when trying to call openBottomSheet and pass the context from the usecase it will display the bottomsheet in the entire website instead of inside the mobile preview.

@jenshor jenshor added the t: bug Something isn't working label May 23, 2022
@jenshor
Copy link
Member Author

jenshor commented May 23, 2022

From discord user:

Also noticed other weird behaviors now with bottomsheets.

Had a input field with overridden theme from context but it seems to ignore those style.

image

@jenshor jenshor self-assigned this May 27, 2022
@jenshor jenshor changed the title BottomSheet is showing up in Widgetbook instead of simulated app BottomSheet shows up in Widgetbook instead of simulated app May 27, 2022
@tieorange
Copy link

This solution does not work with bottom sheet

It still is drawn outside of the device frame

Code:
final result = await showModalBottomSheet( isScrollControlled: true, shape: const RoundedRectangleBorder( borderRadius: BorderRadius.vertical(top: Radius.circular(15)), ), barrierColor: kcBottomSheetBarrierColor, backgroundColor: kcWayfinderWhite, context: context, useRootNavigator: false, builder: (context) => child, );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants