79604044

Date: 2025-05-02 20:00:11
Score: 1.5
Natty:
Report link

To reduce the size of thump use "RoundedSliderThumpShape"

solution resource = https://api.flutter.dev/flutter/material/SliderThemeData/rangeThumbShape.html


SliderTheme(
  data: SliderTheme.of(context).copyWith(
    thumbShape: RoundSliderThumbShape(enabledThumbRadius: 4),
    // to increase or reduce size use
    rangeThumbShape: RoundRangeSliderThumbShape(enabledThumbRadius: 8)
  ),
  child: RangeSlider(
    values: RangeValues(0, 20),
    min: 0,
    max: 100,
    onChanged: (v) {},
  ),
)
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ahsan-mw