refact: audio input, combobox instead of radio (#8965)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
5a2121501d
commit
51b250435d
@ -515,16 +515,16 @@ class _GeneralState extends State<_General> {
|
||||
}
|
||||
|
||||
builder(devices, currentDevice, setDevice) {
|
||||
return _Card(title: 'Audio Input Device', children: [
|
||||
...devices.map((device) => _Radio<String>(context,
|
||||
value: device,
|
||||
groupValue: currentDevice,
|
||||
autoNewLine: false,
|
||||
label: device, onChanged: (value) {
|
||||
setDevice(value);
|
||||
setState(() {});
|
||||
}))
|
||||
]);
|
||||
final child = ComboBox(
|
||||
keys: devices,
|
||||
values: devices,
|
||||
initialKey: currentDevice,
|
||||
onChanged: (key) async {
|
||||
setDevice(key);
|
||||
setState(() {});
|
||||
},
|
||||
).marginOnly(left: _kContentHMargin);
|
||||
return _Card(title: 'Audio Input Device', children: [child]);
|
||||
}
|
||||
|
||||
return AudioInput(builder: builder, isCm: false, isVoiceCall: false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user