flutter_xlider icon indicating copy to clipboard operation
flutter_xlider copied to clipboard

Disable Tap on Trackbar

Open Asian-Digital-Mind opened this issue 5 years ago • 3 comments

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 ), )

Asian-Digital-Mind avatar Aug 15 '20 09:08 Asian-Digital-Mind

Any update on this?

minyethu avatar Jun 30 '21 07:06 minyethu

Have you guys found the solution?

sl1depengwyn avatar Oct 12 '21 16:10 sl1depengwyn

IgnorePointer( child: FlutterSlider(...))

or

AbsorbPointer

caihua avatar Oct 22 '22 00:10 caihua