flutter_desktop: custom image quality ui

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2022-09-01 19:39:51 -07:00
parent 5a8fc529ed
commit 2dc8c02d15
2 changed files with 12 additions and 5 deletions

View File

@ -276,7 +276,7 @@ class _PeerCardState extends State<_PeerCard>
color: _iconMoreHover.value
? MyTheme.color(context).text
: MyTheme.color(context).lightText),
position: mod_menu.PopupMenuPosition.under,
position: mod_menu.PopupMenuPosition.over,
itemBuilder: (BuildContext context) => snapshot.data!,
))));
} else {

View File

@ -489,17 +489,24 @@ class _RemoteMenubarState extends State<RemoteMenubar> {
final slider = Obx(() {
return Slider(
value: sliderValue.value,
max: 100,
divisions: 100,
label: sliderValue.value.round().toString(),
min: 10.0,
max: 100.0,
divisions: 90,
// label: sliderValue.value.round().toString(),
onChanged: (double value) {
sliderValue.value = value;
rxReplay.add(value);
},
);
});
final content = Row(
children: [
slider,
Obx(() => Text('${sliderValue.value.round()}% Bitrate'))
],
);
msgBoxCommon(widget.ffi.dialogManager, 'Custom Image Quality',
slider, [btnCancel]);
content, [btnCancel]);
}
}),
MenuEntryDivider<String>(),