mcrovero / rubber

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

launchTo value lower than lowerBoundValue causes jump #41

Open OpticNectar opened 5 years ago

OpticNectar commented 5 years ago

If you use launchTo to go to a value that is lower than the lowerBoundValue it goes to the value, then after a second it jumps back up to the lowerBoundValue on its own. This worked properly (without bouncing back up) in previous versions, but has since been broken.

This is the line that causes the issue (440 & 441 in animation_controller.dart):

if(_value < lowerBound && dismissable) 
        _value = lowerBound;

This should work like it did before, or there should be an option to allow not jump back up.