General
- Provided the Material 3 themes support.
General
- Upgraded the
intl
package to the latest version 0.19.0.
Bugs
- #FB48050 - Now, the tooltip will be displayed properly when its size is greater than the widget in range slider.
Bugs
- #FB48050 - Now, the tooltip will be displayed properly when its size is greater than the widget in slider.
Bugs
- #FB41819 - The SfRangeSelector dragging works properly even when the range is too small.
Bugs
- #FB39325 - Now, the "AnimationController methods should not be used after calling dispose" exception will no longer be thrown when dragging the range slider.
Bugs
- #FB39325 - Now, the "AnimationController methods should not be used after calling dispose" exception will no longer be thrown when dragging the slider.
Bugs
- Now, the range selector thumb vertical and horizontal dragging works properly when you wrap it inside the scrollable widget.
Bugs
- Now, the range slider thumb vertical and horizontal dragging works properly when you wrap it inside the scrollable widget.
Bugs
- Now, the slider thumb vertical and horizontal dragging works properly when you wrap it inside the scrollable widget.
Bug
- #FB37062 - Now, the discrete RangeSlider thumbs get overlapped when placed inside a Row widget.
Features
- Now, the edge labels in the axis can be shifted inside the axis bounds if their position exceeds the axis bounds using the
edgeLabelPlacement
property.
Features
- Now, the edge labels in the axis can be shifted inside the axis bounds if their position exceeds the axis bounds using the
edgeLabelPlacement
property.
Features
- Now, the edge labels in the axis can be shifted inside the axis bounds if their position exceeds the axis bounds using the
edgeLabelPlacement
property.
Features
- Tooltip visibility - Provided an option to always show a tooltip.
- Start and end callbacks - Provided callbacks to notify the user for start and end interactions performed with slider thumb.
Features
- Tooltip visibility - Provided an option to always show a tooltip.
- Start and end callbacks - Provided callbacks to notify the user for start and end interactions performed with range slider thumb.
Features
- Tooltip visibility - Provided an option to always show a tooltip.
- Start and end callbacks - Provided callbacks to notify the user for start and end interactions performed with range selector thumb.
- Provides an option to change the minimum and maximum positions of the vertical slider.
- Provides an option to change the minimum and maximum positions of the vertical range slider.
- Provides various dragging options to control thumb dragging. The available options are
onThumb
,betweenThumbs
, andboth
.
The following divisor
related properties were renamed into divider
but the behavior of those properties are same as before. The APIs changes are,
-
The
divisors
property has been renamed intodividers
. -
The
divisorShape
property with typeSfDivisorShape
has been renamed intodividerShape
with typeSfDividerShape
. -
The
activeDivisorRadius
property has been renamed intoactiveDividerRadius
in theSfSliderThemeData
. -
The
activeDivisorStrokeColor
property has been renamed intoactiveDividerStrokeColor
in theSfSliderThemeData
. -
The
activeDivisorStrokeWidth
property has been renamed intoactiveDividerStrokeWidth
in theSfSliderThemeData
. -
The
activeDivisorColor
property has been renamed intoactiveDividerColor
in theSfSliderThemeData
. -
The
disabledActiveDivisorColor
property has been renamed intodisabledActiveDividerColor
in theSfSliderThemeData
. -
The
inactiveDivisorRadius
property has been renamed intoinactiveDividerRadius
in theSfSliderThemeData
. -
The
inactiveDivisorStrokeColor
property has been renamed into theinactiveDividerStrokeColor
in theSfSliderThemeData
. -
The
inactiveDivisorStrokeWidth
property has been renamed into theinactiveDividerStrokeWidth
in theSfSliderThemeData
. -
The
inactiveDivisorColor
property has been renamed into theinactiveDividerColor
in theSfSliderThemeData
. -
The
disabledInactiveDivisorColor
property has been renamed into thedisabledInactiveDividerColor
in theSfSliderThemeData
.
The following divisor
related properties were renamed into divider
but the behavior of those properties are same as before. The APIs changes are,
-
The
divisors
property has been renamed intodividers
. -
The
divisorShape
property with typeSfDivisorShape
has been renamed intodividerShape
with typeSfDividerShape
. -
The
activeDivisorRadius
property has been renamed intoactiveDividerRadius
in theSfRangeSliderThemeData
. -
The
activeDivisorStrokeColor
property has been renamed intoactiveDividerStrokeColor
in theSfRangeSliderThemeData
. -
The
activeDivisorStrokeWidth
property has been renamed intoactiveDividerStrokeWidth
in theSfRangeSliderThemeData
. -
The
activeDivisorColor
property has been renamed intoactiveDividerColor
in theSfRangeSliderThemeData
. -
The
disabledActiveDivisorColor
property has been renamed intodisabledActiveDividerColor
in theSfRangeSliderThemeData
. -
The
inactiveDivisorRadius
property has been renamed intoinactiveDividerRadius
in theSfRangeSliderThemeData
. -
The
inactiveDivisorStrokeColor
property has been renamed into theinactiveDividerStrokeColor
in theSfRangeSliderThemeData
. -
The
inactiveDivisorStrokeWidth
property has been renamed into theinactiveDividerStrokeWidth
in theSfRangeSliderThemeData
. -
The
inactiveDivisorColor
property has been renamed into theinactiveDividerColor
in theSfRangeSliderThemeData
. -
The
disabledInactiveDivisorColor
property has been renamed into thedisabledInactiveDividerColor
in theSfRangeSliderThemeData
.
The following divisor
related properties were renamed into divider
but the behavior of those properties are same as before. The APIs changes are,
-
The
divisors
property has been renamed intodividers
. -
The
divisorShape
property with typeSfDivisorShape
has been renamed intodividerShape
with typeSfDividerShape
. -
The
activeDivisorRadius
property has been renamed intoactiveDividerRadius
in theSfRangeSelectorThemeData
. -
The
activeDivisorStrokeColor
property has been renamed intoactiveDividerStrokeColor
in theSfRangeSelectorThemeData
. -
The
activeDivisorStrokeWidth
property has been renamed intoactiveDividerStrokeWidth
in theSfRangeSelectorThemeData
. -
The
activeDivisorColor
property has been renamed intoactiveDividerColor
in theSfRangeSelectorThemeData
. -
The
disabledActiveDivisorColor
property has been renamed intodisabledActiveDividerColor
in theSfRangeSelectorThemeData
. -
The
inactiveDivisorRadius
property has been renamed intoinactiveDividerRadius
in theSfRangeSelectorThemeData
. -
The
inactiveDivisorStrokeColor
property has been renamed into theinactiveDividerStrokeColor
in theSfRangeSelectorThemeData
. -
The
inactiveDivisorStrokeWidth
property has been renamed into theinactiveDividerStrokeWidth
in theSfRangeSelectorThemeData
. -
The
inactiveDivisorColor
property has been renamed into theinactiveDividerColor
in theSfRangeSelectorThemeData
. -
The
disabledInactiveDivisorColor
property has been renamed into thedisabledInactiveDividerColor
in theSfRangeSelectorThemeData
.
- Support has been provided for vertical orientation.
- Support has been provided for vertical orientation.
- Now, the
SfRangeSliderSemanticFormatterCallback
typedef has been changed intoRangeSliderSemanticFormatterCallback
and the parameter has been changed fromSfRangeValues
tovalue
which denotes the value of the current thumb. A new parameter namedSfThumb
has also been added to indicate which thumb is changed currently.
- Now, the
SfRangeSelectorSemanticFormatterCallback
typedef has been changed intoRangeSelectorSemanticFormatterCallback
and the parameter has been changed fromSfRangeValues
tovalue
which denotes the value of the current thumb. A new parameter namedSfThumb
has also been added to indicate which thumb is changed currently.
- The
showTooltip
property has been changed intoenableTooltip
property.
- The
showTooltip
property has been changed intoenableTooltip
property.
- The
showTooltip
property has been changed intoenableTooltip
property.
-
Material design improvements - The following UI improvements have been made based on the latest Material design guidelines:
- Difference in active and inactive track height.
- Shadow support for the thumbs.
- Changes in default divider radius.
-
Material design improvements - The following UI improvements have been made based on the latest Material design guidelines:
- Difference in default active and inactive track height.
- Shadow support for the thumbs.
- Overlapping stroke for thumb and tooltip.
- Changes in default divider radius.
-
Material design improvements - The following UI improvements have been made based on the latest Material design guidelines:
- Difference in default active and inactive track height.
- Shadow support for the thumbs.
- Overlapping stroke for thumb and tooltip.
- Changes in default divider radius.
No changes.
No changes.
No changes.
No changes.
No changes.
No changes.
No changes.
No changes.
No changes.
The Flutter Slider is a lightweight widget that allows you to select a single value from a range of values.
- Numeric and date support - Provides functionality for selecting numeric and date values. For date, support is provided up to the seconds interval.
- Labels - Render labels for date and numeric values with the option to customize their formats based on your requirements.
- Ticks and dividers - Provides the option to show ticks and dividers based on the slider interval. Also, minor ticks can be enabled to indicate the values between each interval. These options present the selected value in a more intuitive way for end users.
- Thumb icon support - Accepts custom widgets like icon or text inside the thumb.
- Tooltip - Render a tooltip to show the selected value clearly. You can also customize the format of the text shown in the tooltip. Paddle and rectangular shape tooltips are supported.
- Highly customizable - In addition to the rich set of built-in features, the control is fully customizable through its wide range options.
- Discrete selection - Provides an option for selecting only discrete numeric and date values.
- Interval selection - Allows users to select a particular interval by tapping or clicking in it. Both thumbs will be moved to the current interval with smooth animation.
- Thumb icon support - Accepts custom widgets like icon or text inside the left and right thumbs.
- Paddle tooltip - Paddle shape tooltip support has been provided.
- Support has been provided to customize the radius of the active and inactive divider using the
activeDividerRadius
andinactiveDividerRadius
properties respectively in theSfRangeSliderThemeData
. - Support has been provided to customize the stroke width of the active and inactive divider using the
activeDividerStrokeWidth
andinactiveDividerStrokeWidth
properties respectively in theSfRangeSliderThemeData
. - Support has been provided to customize the stroke color of the active and inactive divider using the
activeDividerStrokeColor
andinactiveDividerStrokeColor
properties respectively in theSfRangeSliderThemeData
. - Support has been provided to customize the thumb stroke using the
thumbStrokeWidth
property in theSfRangeSliderThemeData
. - Support has been provided to customize the stroke color of the thumb using the
thumbStrokeColor
property in theSfRangeSliderThemeData
.
-
The
trackHeight
property has been split into theactiveTrackHeight
andinactiveTrackHeight
properties in theSfRangeSliderThemeData
. -
The following arguments are added, removed and modified in the
getPreferredRect
method ofSfTrackShape
:- Modified the type of the argument parentBox from
RenderProxyBox
toRenderBox
. - Added a new argument named
isActive
, which is used to denote whether currently, the active or inactive track is being drawn. - Removed the argument
isEnabled
.
- Modified the type of the argument parentBox from
-
The following arguments are added, removed and modified in the
paint
method ofSfTrackShape
:- Modified the argument
animation
toenableAnimation
. - Modified the type of the argument parentBox from
RenderProxyBox
toRenderBox
. - Added a new argument named as
currentValues
that holds the current thumb values forSfRangeSlider
. - Added a new argument named as
currentValue
that holds the current thumb value forSfSlider
. - Added new arguments named as
activePaint
andinactivePaint
for customizing the track. - Added a new argument named
thumbCenter
that holds the current thumb pixel position ofSfSlider
. - Removed the argument
isEnabled
.
- Modified the argument
-
The following arguments are added, removed and modified in the
getPreferredRect
method ofSfThumbShape
:- Removed the argument
isEnabled
.
- Removed the argument
-
The following arguments are added, removed and modified in the
paint
method ofSfThumbShape
:- Modified the argument
animation
toenableAnimation
. - Modified the type of the argument parentBox from
RenderProxyBox
toRenderBox
. - Added a new argument named as
child
which is used to add an icon to the surface of the thumb. - Added a new argument named as
currentValues
that holds the current thumb values forSfRangeSlider
. - Added a new argument named as
currentValue
that holds the current thumb value forSfSlider
. - Added a new argument named as
paint
for customizing the thumb. - Removed the argument
isEnabled
.
- Modified the argument
-
The following arguments are added, removed and modified in the
getPreferredRect
method ofSfDividerShape
:- Added a new argument named
isActive
, which is used to find whether active or inactive divider is being drawn. - Removed the argument
isEnabled
.
- Added a new argument named
-
The following arguments are added, removed and modified in the
paint
method ofSfDividerShape
:- Modified the argument
animation
toenableAnimation
. - Modified the type of the argument parentBox from
RenderProxyBox
toRenderBox
. - Added a new argument named as
currentValues
that holds the current thumb values forSfRangeSlider
. - Added a new argument named as
currentValue
that holds the current thumb value forSfSlider
. - Added a new argument named
paint
for customizing the divider. - Added a new argument named
thumbCenter
that holds the current thumb pixel position ofSfSlider
. - Removed the argument
isEnabled
.
- Modified the argument
-
The following arguments are added, removed and modified in the
getPreferredRect
method ofSfOverlayShape
:- Removed the argument
isEnabled
.
- Removed the argument
-
The following arguments are added, removed and modified in the
paint
method ofSfOverlayShape
:- Modified the type of the argument parentBox from
RenderProxyBox
toRenderBox
. - Added a new argument named as
currentValues
that holds the current thumb values forSfRangeSlider
. - Added a new argument named as
currentValue
that holds the current thumb value forSfSlider
. - Added a new argument named as
paint
for customizing the thumb overlay. - Removed the argument
isEnabled
.
- Modified the type of the argument parentBox from
-
The following arguments are added, removed and modified in the
getPreferredRect
method ofSfTickShape
:- Removed the argument
isEnabled
.
- Removed the argument
-
The following arguments are added, removed and modified in the
paint
method ofSfTickShape
:- Modified the argument
animation
toenableAnimation
. - Modified the type of the argument parentBox from
RenderProxyBox
toRenderBox
. - Added a new argument named as
currentValues
that holds the current thumb values forSfRangeSlider
. - Added a new argument named as
currentValue
that holds the current thumb value forSfSlider
. - Added a new argument named
thumbCenter
that holds the current thumb pixel position ofSfSlider
. - Removed the argument
isEnabled
.
- Modified the argument
- #I275668 - Now, the support has been provided to change the range by dragging in the area between start and end thumbs and restrict the individual thumb dragging by setting the
dragMode
property toSliderDragMode.betweenThumbs
. - Deferred update - Provides an option to defer range updates, allowing you to control when dependent components are updated while thumbs are being dragged continuously.
- Discrete selection - Provides an option for selecting only discrete numeric and date values.
- Thumb icon support - Accepts custom widgets like icon or text inside the left and right thumbs.
- Paddle tooltip - Paddle shape tooltip support has been provided.
- Interval selection - Allows selecting a particular interval by tapping or clicking in it. Both the thumbs will be moved to the current interval with animation.
- Support has been provided to customize the radius of the active and inactive divider using the
activeDividerRadius
andinactiveDividerRadius
properties respectively in theSfRangeSelectorThemeData
. - Support has been provided to customize the stroke width of the active and inactive divider using the
activeDividerStrokeWidth
andinactiveDividerStrokeWidth
properties respectively in theSfRangeSelectorThemeData
. - Support has been provided to customize the stroke color of the active and inactive divider using the
activeDividerStrokeColor
andinactiveDividerStrokeColor
properties respectively in theSfRangeSelectorThemeData
. - Support has been provided to customize the thumb stroke using the
thumbStrokeWidth
property in theSfRangeSelectorThemeData
. - Support has been provided to customize the stroke color of the thumb using the
thumbStrokeColor
property in theSfRangeSelectorThemeData
.
-
The
trackHeight
property has been split into theactiveTrackHeight
andinactiveTrackHeight
properties inSfRangeSelectorThemeData
. -
The
SfRangeSliderThemeData
has been changed toSfRangeSelectorThemeData
inSfRangeSelector
. -
The
lockRange
property has been removed and the same behavior can be achieved by setting thedragMode
property toSliderDragMode.both
. -
The following arguments are added, removed and modified in the
getPreferredRect
method ofSfTrackShape
:- Modified the type of the argument parentBox from
RenderProxyBox
toRenderBox
. - Added a new argument named
isActive
, which is used to denote whether currently, the active or inactive track is being drawn. - Removed the argument
isEnabled
.
- Modified the type of the argument parentBox from
-
The following arguments are added, removed and modified in the
paint
method ofSfTrackShape
:- Modified the argument
animation
toenableAnimation
. - Modified the type of the argument parentBox from
RenderProxyBox
toRenderBox
. - Added a new argument named as
currentValues
that holds the current thumb values forSfRangeSelector
. - Added a new argument named as
currentValue
that holds the current thumb value forSfSlider
. - Added new arguments named as
activePaint
andinactivePaint
for customizing the track. - Added a new argument named
thumbCenter
that holds the current thumb pixel position ofSfSlider
. - Removed the argument
isEnabled
.
- Modified the argument
-
The following arguments are added, removed and modified in the
getPreferredRect
method ofSfThumbShape
:- Removed the argument
isEnabled
.
- Removed the argument
-
The following arguments are added, removed and modified in the
paint
method ofSfThumbShape
:- Modified the argument
animation
toenableAnimation
. - Modified the type of the argument parentBox from
RenderProxyBox
toRenderBox
. - Added a new argument named as
child
which is used to add an icon to the surface of the thumb. - Added a new argument named as
currentValues
that holds the current thumb values forSfRangeSelector
. - Added a new argument named as
currentValue
that holds the current thumb value forSfSlider
. - Added a new argument named as
paint
for customizing the thumb. - Removed the argument
isEnabled
.
- Modified the argument
-
The following arguments are added, removed and modified in the
getPreferredRect
method ofSfDividerShape
:- Added a new argument named
isActive
, which is used to find whether active or inactive divider is being drawn. - Removed the argument
isEnabled
.
- Added a new argument named
-
The following arguments are added, removed and modified in the
paint
method ofSfDividerShape
:- Modified the argument
animation
toenableAnimation
. - Modified the type of the argument parentBox from
RenderProxyBox
toRenderBox
. - Added a new argument named as
currentValues
that holds the current thumb values forSfRangeSelector
. - Added a new argument named as
currentValue
that holds the current thumb value forSfSlider
. - Added a new argument named
paint
for customizing the divider. - Added a new argument named
thumbCenter
that holds the current thumb pixel position ofSfSlider
. - Removed the argument
isEnabled
.
- Modified the argument
-
The following arguments are added, removed and modified in the
getPreferredRect
method ofSfOverlayShape
:- Removed the argument
isEnabled
.
- Removed the argument
-
The following arguments are added, removed and modified in the
paint
method ofSfOverlayShape
:- Modified the type of the argument parentBox from
RenderProxyBox
toRenderBox
. - Added a new argument named as
currentValues
that holds the current thumb values forSfRangeSelector
. - Added a new argument named as
currentValue
that holds the current thumb value forSfSlider
. - Added a new argument named as
paint
for customizing the thumb overlay. - Removed the argument
isEnabled
.
- Modified the type of the argument parentBox from
-
The following arguments are added, removed and modified in the
getPreferredRect
method ofSfTickShape
:- Removed the argument
isEnabled
.
- Removed the argument
-
The following arguments are added, removed and modified in the
paint
method ofSfTickShape
:- Modified the argument
animation
toenableAnimation
. - Modified the type of the argument parentBox from
RenderProxyBox
toRenderBox
. - Added a new argument named as
currentValues
that holds the current thumb values forSfRangeSelector
. - Added a new argument named as
currentValue
that holds the current thumb value forSfSlider
. - Added a new argument named
thumbCenter
that holds the current thumb pixel position ofSfSlider
. - Removed the argument
isEnabled
.
- Modified the argument
No changes.
No changes.
No changes.
No changes.
No changes.
No changes.
Initial release.
Features
Includes the Range Slider and Range Selector widgets with these features:
- Numeric and date values
- Labels
- Ticks
- Dividers
- Tooltip
- Child (Range Selector only)