How do I get the slider to maintain state? I am using the slider in a SimpleDialog and want the min and max values updated when a user opens/closes the dialog.
I attempted to create a double variable for both min and max, then update those variables after the user has closed the dialog using shared_preferences. However, after the slider has the min and max variables assigned, if I drag the slider I immediately get the exception:
How do I get the slider to maintain state? I am using the slider in a SimpleDialog and want the min and max values updated when a user opens/closes the dialog.
I attempted to create a double variable for both min and max, then update those variables after the user has closed the dialog using
shared_preferences
. However, after the slider has the min and max variables assigned, if I drag the slider I immediately get the exception:Code:
Upon dialog close I have a method that assigns the value of
_lowerValue
torentMin
and_upperValue
torentMax
.