flutter_xlider
flutter_xlider copied to clipboard
Disable Tap on Trackbar
How can I disable any touch regarding the trackbar? I tried the selectByTap and Jump. When I tap and move the trackbar, the handler will follow. How can I disable this?
FlutterSlider( values:[info.rent.toDouble()], max: 10000, min: 0, selectByTap: false, jump: false, onDragging: (v,lowerValue,uv) { setState(() { }, onDragCompleted: (v,lowerValue,uv) { }, handler: FlutterSliderHandler( child: Container( padding: EdgeInsets.all(5), child: Icon(Icons.graphic_eq, size: 25, color: Colors.red) ) ), trackBar: FlutterSliderTrackBar( activeTrackBar: BoxDecoration( color: Colors.red) ), step: FlutterSliderStep(step: 50), handlerAnimation: FlutterSliderHandlerAnimation( curve: Curves.elasticOut, reverseCurve: Curves.bounceIn, duration: Duration(milliseconds: 500), scale: 1.3 ), )
Any update on this?
Have you guys found the solution?
IgnorePointer( child: FlutterSlider(...))
or
AbsorbPointer