I’m using the GetX package to display a bottomSheet
.
I want users to be able to click on the screen when my bottom sheet is opened, like the following image.
How can I do this?
I’m using the GetX package to display a bottomSheet
.
I want users to be able to click on the screen when my bottom sheet is opened, like the following image.
How can I do this?
2
Answers
Instead of using
Get.bottomSheet
, you can use aStack
widget and use it something like this:The answer is no
Why?
According to the Flutter documentation:
The main purpose of the bottom sheet is to prevent the user from interacting with the rest of the app.
How can we overcome this?
Use a persistent bottom sheet, i.e., using
showBottomSheet
.Output:
Code:
Can it be done using Getx?
Unfortunately no, because
getx
supports onlybottomShet
which is an alternative to Modal Bottom Sheet and there isn’t any alternative to a persistent bottom sheet.