mcrovero / rubber

An elastic material bottom sheet implementation for Flutter.
BSD 2-Clause "Simplified" License
562 stars 88 forks source link

Add RubberBottomSheet.of(context) #42

Closed The-Redhat closed 5 years ago

The-Redhat commented 5 years ago

Is your feature request related to a problem? Please describe. Currently you have to pass down the RubberAnimationController in order to show/control the BottomSheet from widgets down the tree.

Describe the solution you'd like Like Scaffold.of(context).showModalBottomSheet it would be nice to have RubberBottomSheet.of(context), or something similar, in order to access the RubberAnimationController.

Describe alternatives you've considered Like described, the alternative is to pass down the RubberAnimationController which isn't elegant.