pub struct RoundedRectRangeSliderValueIndicatorShape;Expand description
The rounded rectangle shape of a RangeSlider’s value indicators.
If the SliderThemeData::value_indicator_color is null, then the shape uses the
ColorScheme::inverse_surface color to draw the value indicator.
If the SliderThemeData::value_indicator_text_style is null, then the indicator label
text style defaults to TextTheme::label_medium with the color set to
ColorScheme::on_inverse_surface. If the ThemeData::use_material3 is set to false, then
the indicator label text style defaults to TextTheme::body_large with the color set to
ColorScheme::on_inverse_surface.
If the SliderThemeData::value_indicator_stroke_color is provided, then the value
indicator is drawn with a stroke border with the color provided.
If ThemeData::use_material3 is true and RangeSlider::year2023 is false, then the
RangeSlider will use RoundedRectRangeSliderValueIndicatorShape as the default value
indicators shape.
See also:
RangeSlider, which includes value indicators defined by this shape.SliderTheme, which can be used to configure the range slider value indicators of all range sliders in a widget subtree.
Implementations§
Source§impl RoundedRectRangeSliderValueIndicatorShape
impl RoundedRectRangeSliderValueIndicatorShape
Sourcepub const fn new() -> RoundedRectRangeSliderValueIndicatorShape
pub const fn new() -> RoundedRectRangeSliderValueIndicatorShape
Create range slider value indicators that resembles a rounded rectangle.
Trait Implementations§
impl Copy for RoundedRectRangeSliderValueIndicatorShape
Source§impl RangeSliderValueIndicatorShape for RoundedRectRangeSliderValueIndicatorShape
impl RangeSliderValueIndicatorShape for RoundedRectRangeSliderValueIndicatorShape
Source§fn eq_shape(&self, other: &dyn RangeSliderValueIndicatorShape) -> bool
fn eq_shape(&self, other: &dyn RangeSliderValueIndicatorShape) -> bool
Value equality, as Dart’s canonicalized const instances are identical.