| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 
 | import 'package:another_xlider/another_xlider.dart';import 'package:flutter/material.dart';
 
 import '../index.dart';
 
 
 class PriceRangeWidget extends StatelessWidget {
 
 final List<double>? values;
 
 
 final Function(int, dynamic, dynamic)? onDragging;
 
 
 final double? max;
 
 
 final double? min;
 
 const PriceRangeWidget({
 Key? key,
 this.values,
 this.onDragging,
 this.max = 99999,
 this.min = 0,
 }) : super(key: key);
 
 @override
 Widget build(BuildContext context) {
 return Column(
 children: [
 Row(
 children: [
 TextWidget.body3("\$${values?[0]}"),
 const Spacer(),
 TextWidget.body3("\$${values?[1]}"),
 ],
 ),
 
 FlutterSlider(
 
 values: values!,
 
 rangeSlider: true,
 
 max: max,
 
 min: min,
 
 handlerHeight: 6,
 
 handlerWidth: 6,
 
 trackBar: FlutterSliderTrackBar(
 activeTrackBar: BoxDecoration(
 color: AppColors.highlight,
 ),
 inactiveTrackBar: BoxDecoration(
 color: AppColors.outline,
 ),
 ),
 
 tooltip: FlutterSliderTooltip(
 leftPrefix: IconWidget.icon(
 Icons.attach_money,
 ),
 rightSuffix: IconWidget.icon(
 Icons.attach_money,
 ),
 ),
 
 handler: FlutterSliderHandler(
 decoration: const BoxDecoration(),
 child: Container(
 width: 6,
 height: 6,
 decoration: BoxDecoration(
 color: AppColors.highlight,
 borderRadius: const BorderRadius.all(
 Radius.circular(3),
 ),
 border: Border.all(
 color: AppColors.highlight,
 width: 1,
 ),
 ),
 ),
 ),
 
 rightHandler: FlutterSliderHandler(
 child: Container(
 width: 6,
 height: 6,
 decoration: BoxDecoration(
 color: AppColors.highlight,
 borderRadius: const BorderRadius.all(
 Radius.circular(3),
 ),
 border: Border.all(
 color: AppColors.highlight,
 width: 1,
 ),
 ),
 ),
 ),
 
 onDragging: onDragging,
 ),
 ],
 );
 }
 }
 
 |