From 335b8d4c61853141c04853c52ed799a8dd9e0510 Mon Sep 17 00:00:00 2001 From: AhsanSarwar45 Date: Thu, 21 Dec 2023 12:19:43 +0500 Subject: [PATCH] Improve color-picker ux --- lib/common/widgets/fields/color_bottom_sheet.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/common/widgets/fields/color_bottom_sheet.dart b/lib/common/widgets/fields/color_bottom_sheet.dart index 68a935f0..9cc98718 100644 --- a/lib/common/widgets/fields/color_bottom_sheet.dart +++ b/lib/common/widgets/fields/color_bottom_sheet.dart @@ -79,6 +79,7 @@ class _ColorBottomSheetState extends State { ), // const SizedBox(height: 16.0), ColorPicker( + wheelDiameter: MediaQuery.of(context).size.width - 8, color: _color, onColorChanged: (Color color) => setState(() { _color = color; @@ -98,7 +99,7 @@ class _ColorBottomSheetState extends State { ColorPickerType.wheel: true, }, enableShadesSelection: true, - subheading: Text('Select color shade', + subheading: Text('Shade', style: textTheme.titleSmall ?.copyWith(color: colorScheme.onSurface)), showColorCode: true,