flutter_native_colorpicker 1.0.0 copy "flutter_native_colorpicker: ^1.0.0" to clipboard
flutter_native_colorpicker: ^1.0.0 copied to clipboard

outdated

Use native color pickers shipped with the OS.

flutter_native_colorpicker #

This package will support all native color pickers shipped with the current OS.

Actually only works on iOS 14 and above.

Usage #

  1. Simply open the color picker by run the following static method: (origin must be a valid Rect -> see full example for help)
FlutterNativeColorpicker.open(origin);

This just opens the color picker but does not listen for color input.

  1. To listen to inputs start a listener:
listener = FlutterNativeColorpicker.startListener((col) {
  setState(() {
    _color = col;
  });
});

Important: Please make sure to cancel the listener when disposing the view!

@override
void dispose() {
  listener.cancel();
  super.dispose();
}
8
likes
0
points
28
downloads

Publisher

verified publishercloudacy.com

Weekly Downloads

Use native color pickers shipped with the OS.

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_native_colorpicker

Packages that implement flutter_native_colorpicker