mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
opt slider color picker
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -53,9 +53,19 @@ class _SlideColorPickerState extends State<SlideColorPicker> {
|
|||||||
return Row(
|
return Row(
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(width: 16),
|
const SizedBox(width: 16),
|
||||||
Text(title),
|
SizedBox(
|
||||||
|
width: MediaQuery.textScalerOf(context).scale(16),
|
||||||
|
child: Text(title),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 12),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
child: SliderTheme(
|
||||||
|
data: SliderTheme.of(context).copyWith(
|
||||||
|
trackHeight: 10,
|
||||||
|
thumbSize: WidgetStateProperty.all(const Size(4, 25)),
|
||||||
|
),
|
||||||
child: Slider(
|
child: Slider(
|
||||||
|
padding: EdgeInsets.zero,
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 255,
|
max: 255,
|
||||||
divisions: 255,
|
divisions: 255,
|
||||||
@@ -63,8 +73,14 @@ class _SlideColorPickerState extends State<SlideColorPicker> {
|
|||||||
onChanged: onChanged,
|
onChanged: onChanged,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
),
|
||||||
|
const SizedBox(width: 12),
|
||||||
|
SizedBox(
|
||||||
|
width: MediaQuery.textScalerOf(context).scale(25),
|
||||||
|
child: Text(
|
||||||
value.toString(),
|
value.toString(),
|
||||||
|
textAlign: TextAlign.end,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 16),
|
const SizedBox(width: 16),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user