mcrovero / rubber

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

Variable to set an initial height value #3

Closed icarus31 closed 5 years ago

icarus31 commented 5 years ago

It will be nice to get a variable to set the initial height value of the widget. Something like:

RubberBottomSheet(
  lowerLayer: _getLowerLayer(),
  upperLayer: _getUpperLayer(),
  animationController: _controller,
  height: 100.0
),

If there is another way, I would like to know. Thanks and nice widget!

mcrovero commented 5 years ago

You can set the initial value from the Animation Controller The lower bound defines the initial position

icarus31 commented 5 years ago

Thanks!