You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Library Version : com.github.skydoves:flexible-bottomsheet-material3:0.1.2
Affected Device(s) : Pixel 8 Pro SDK 34
Initial state not working or not able to be set.
Tracing the library code, calling rememberFlexibleBottomSheetState calls a private function rememberFlexibleSheetState which has a default parameter of initialValue: FlexibleSheetValue = FlexibleSheetValue.Hidden. The public method does not take that parameter, however, the initial state should evaluate to hidden regardless.
In my most basic implementation, the sheet always starts off a not hidden, intermediately expanded.
It's not clear how to set the initial state, or if it's supported. Am I missing something obvious?
Wrapping the entire FlexibleBottomSheet in an if statement and check some state before showing works, but then it gets awkward to have a nice animation to hide it when that state changes, it would just abruptly disappear.
Expected Behaviour:
there is a way to set the initial state value
initial state value is respected.
The text was updated successfully, but these errors were encountered:
Initial state not working or not able to be set.
Tracing the library code, calling
rememberFlexibleBottomSheetState
calls a private functionrememberFlexibleSheetState
which has a default parameter ofinitialValue: FlexibleSheetValue = FlexibleSheetValue.Hidden
. The public method does not take that parameter, however, the initial state should evaluate to hidden regardless.In my most basic implementation, the sheet always starts off a not hidden, intermediately expanded.
It's not clear how to set the initial state, or if it's supported. Am I missing something obvious?
Wrapping the entire
FlexibleBottomSheet
in anif statement
and check some state before showing works, but then it gets awkward to have a nice animation to hide it when that state changes, it would just abruptly disappear.Expected Behaviour:
The text was updated successfully, but these errors were encountered: