Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

SnappingSheet with ModalBottomSheet #69

Open
shifenis opened this issue Jun 11, 2021 · 1 comment
Open

SnappingSheet with ModalBottomSheet #69

shifenis opened this issue Jun 11, 2021 · 1 comment

Comments

@shifenis
Copy link

As the title, is it possible to open the SnappingSheet with showModalBottomSheet?
I mean, it would be awesome If SnappingSheet can be triggered similar to the default sheet and not permanent on the bottom/top of the page.

I hope I was quite clear.

@lvxduck
Copy link

lvxduck commented Jun 24, 2021

You can wrap your SnappingSheet like this:
showModalBottomSheet(
context: context,
barrierColor: Colors.black26,
backgroundColor: Colors.transparent,
isScrollControlled: true,
builder: (BuildContext context) {
return SnappingSheet( ),
}
);

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

No branches or pull requests

2 participants