Skip to content

Commit

Permalink
settings: Change ColorPicker to SlidePicker
Browse files Browse the repository at this point in the history
Change-Id: Ic09489ef637f03fba6eab7a749672cd3dbc49aef
  • Loading branch information
calcitem committed May 2, 2023
1 parent 797a640 commit 6c4952c
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions src/ui/flutter_app/lib/shared/settings/src/list_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,22 @@ class _ColorPickerAlertState extends State<_ColorPickerAlert> {
style: AppTheme.dialogTitleTextStyle,
)
: null,
content: ColorPicker(
pickerColor: pickedColor,
labelTypes: DB().displaySettings.fontScale == 1.0
? const <ColorLabelType>[
ColorLabelType.rgb,
ColorLabelType.hsv,
ColorLabelType.hsl
]
: const <ColorLabelType>[],
onColorChanged: _changeColor,
content: SingleChildScrollView(
child: SizedBox(
height: MediaQuery.of(context).size.height * 1.0,
child: SlidePicker(
pickerColor: pickedColor,
labelTypes: DB().displaySettings.fontScale == 1.0
? const <ColorLabelType>[
ColorLabelType.hex,
ColorLabelType.rgb,
ColorLabelType.hsv,
ColorLabelType.hsl
]
: const <ColorLabelType>[],
onColorChanged: _changeColor,
),
),
),
actions: <Widget>[
TextButton(
Expand Down

0 comments on commit 6c4952c

Please sign in to comment.