Skip to content

Feature Request: Support initializing picker with preset colors #10

@akanshSirohi

Description

@akanshSirohi

Hi! First off, thank you for this neat library. It’s really handy and visually pleasing.

The library currently initializes the color picker with hardcoded default values such as Color.Black or Color.White. This behavior causes issues when the picker is used for editing an already selected color. Upon reopening, the picker does not reflect the previously chosen color, resulting in a loss of state.

Problem

  • The color picker does not retain or display the previously selected color.
  • This affects user experience by forcing them to reselect the desired color each time.

Feature Request

Add support for initializing the color picker with a preset or selected color. Ideally, this could be done via:

  • A builder method like setInitialColor(color: Int)
  • Or a parameter passed during the picker setup

This would allow developers to reopen the picker with the correct color context and provide a smoother, more intuitive user experience.

Thanks again for this awesome tool!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions