rydmike / flex_color_picker

A highly customizable Flutter color picker.
BSD 3-Clause "New" or "Revised" License
198 stars 41 forks source link

Swap OK and CANCEL button order on bottom action in built in dialog #42

Closed rydmike closed 2 years ago

rydmike commented 2 years ago

Different platform use different order Ok and Cancel action buttons. As in OK-CANCEL versus CANCEL-OK on buttons at the bottom of a dialog.

Add capability to manually specify order of the buttons and possibility to specify to use platform adaptive order as well, plus using directionality affected order as well.

Too look into: How does directionality affect default order of OK-CANCEL on platform based order when directionality is used?

For order config an enum with these values could be used:

Where Directional indicates that directionality is used to determine from which side the first button is placed, in listed order in enum value.

rydmike commented 2 years ago

Added via https://github.com/rydmike/flex_color_picker/pull/46