form_builder_extra_fields icon indicating copy to clipboard operation
form_builder_extra_fields copied to clipboard

[FormBuilderColorPickerField]: Color labels are not user friendly

Open mgalgs opened this issue 7 months ago • 3 comments

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
> 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
          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

iOS:

Image

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

mgalgs avatar Apr 10 '25 19:04 mgalgs

Is this actually the same as #137 though? Note that this is the material picker pop-up, whereas #137 refers to the label after a color is selected.

mgalgs avatar Apr 17 '25 00:04 mgalgs

Is related with this: https://github.com/mchome/flutter_colorpicker/pull/120

deandreamatias avatar Apr 17 '25 07:04 deandreamatias

This issue is from dependency package flutter_colorpicker. Until don't resolve there, we can't update here

deandreamatias avatar Apr 18 '25 19:04 deandreamatias