|
|
@ -30,6 +30,32 @@ class _RowGradeWidgetState extends State<RowGradeWidget> { |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
|
|
|
Slider( |
|
|
|
|
|
value: _templateData['value'].toDouble(), |
|
|
|
|
|
min: 0, |
|
|
|
|
|
max: 10, |
|
|
|
|
|
divisions: 10, |
|
|
|
|
|
activeColor: Colors.blue, |
|
|
|
|
|
onChanged: (value) { |
|
|
|
|
|
setState(() { |
|
|
|
|
|
_templateData['value'] = value.toInt(); |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
onChangeEnd: (value) { |
|
|
|
|
|
_templateData['onCallback'](_templateData['value']); |
|
|
|
|
|
}, |
|
|
|
|
|
), |
|
|
|
|
|
SizedBox( |
|
|
|
|
|
width: 15.w, |
|
|
|
|
|
child: Text( |
|
|
|
|
|
_templateData['value'].toString(), |
|
|
|
|
|
textAlign: TextAlign.right, |
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
color: isDarkMode ? Colors.white : Colors.grey, |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
], |
|
|
], |
|
|
), |
|
|
), |
|
|
); |
|
|
); |
|
|
|