flutter-form-builder-ecosystem / flutter-form-builder-ecosystem/form_builder_extra_fields

[FormBuilderColorPickerField]: Color labels are not user friendly

Open
#142 3 comments 0 reactions 0 assignees View on GitHub
bug originates from dependency
Dominant language
Dart
Stars
29
Forks
56
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Package/Plugin version

12.0.0

### Platforms

- [x] Android
- [x] iOS
- [ ] Linux
- [ ] MacOS
- [ ] Web
- [ ] Windows

### Flutter doctor

Flutter doctor

```bash
> fvm flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.29.2, on Arch Linux 6.12.20-1-lts, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2024.3)
[✓] Connected device (2 available)
[✓] Network resources

! Doctor found issues in 1 category.
```

### Minimal code example

Code sample

```dart
FormBuilderColorPickerField(
name: 'text_color',
initialValue: textColor,
colorPickerType: ColorPickerType.materialPicker,
decoration: const InputDecoration(labelText: 'Text color'),
onChanged: (value) {
if (value != null && value != textColor) {
textColor = value;
onChange();
}
},
),
```

### Current Behavior

The label on each color in the material picker is pretty wild.

Android:

![Image](https://github.com/user-attachments/assets/58d83a52-06ec-4e91-ae72-5c3a88c34338)

iOS:

![Image](https://github.com/user-attachments/assets/35af41b6-93a1-4741-82c4-7e1d65d50720)

### Expected Behavior

A cleaner representation of the color (possibly just the hex value in a smaller text size).

### Steps To Reproduce

Open a color picker

### Aditional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.