Browse Source

修改设备设置

weicu
tanlongsheng 11 months ago
parent
commit
90baacd0a2
  1. 56
      lib/modules/eq_settings/views/widgets/select_equalizer_widget.dart

56
lib/modules/eq_settings/views/widgets/select_equalizer_widget.dart

@ -85,37 +85,39 @@ class _SelectEqualizerWidgetState extends State<SelectEqualizerWidget> {
children: List.generate(
_templateData['xAxis'].length,
(index) => Expanded(
child: Column(
child: Stack(
children: [
Expanded(
child: RotatedBox(
quarterTurns: 3,
child: StatefulBuilder(
builder: (BuildContext context, setStateful) {
return Slider(
value: _values[index].toDouble(),
min: -5,
max: 5,
divisions: 10,
activeColor: Colors.green,
onChanged: (value) {
setStateful(() {
_values[index] = value.toInt();
});
},
onChangeEnd: (value) {
setState(() {});
},
);
},
),
RotatedBox(
quarterTurns: 3,
child: StatefulBuilder(
builder: (BuildContext context, setStateful) {
return Slider(
value: _values[index].toDouble(),
min: -5,
max: 5,
divisions: 10,
activeColor: Colors.green,
onChanged: (value) {
setStateful(() {
_values[index] = value.toInt();
});
},
onChangeEnd: (value) {
setState(() {});
},
);
},
),
),
Text(
_templateData['xAxis'][index],
style: TextStyle(
Align(
alignment: Alignment.bottomCenter,
child: Text(
_templateData['xAxis'][index],
style: TextStyle(
fontSize: 14.sp,
color: isDarkMode ? Colors.white : Colors.grey),
color: isDarkMode ? Colors.white : Colors.grey,
),
),
),
],
),

Loading…
Cancel
Save