You need to provide AnimationController to the Widget, thus you want to extend some ticker provider, eg.Step 5: Go to the wheel and tap anywhere on the wheel. As soon as you press the button, all the color names will be added to the random color picker wheel. Step 4: Once you have entered all the colors, just press the green Add Segments button. To stick the WheelOverlayEntr圜ontent to some component, you want to use LayerLink. Input each color and press the Enter button on your keyboard.This helps us to have a decent performance. You can have a new OverlayEntry, but you only need one WheelOverlayEntr圜ontent. WheelOverlayEntr圜ontent should be generated only ONCE but not generated each build.If you decided to go this route there are several core ideas that you need to wrap your head around. Note: This use case is a bit complicated. RotationAnimationConfig: RotationAnimationConfig( First, test out our color wheel picker, then you can play around with the various color palettes and work on fine tuning your vision down to the tiniest detail. OpacityAnimationConfig: OpacityAnimationConfig( Make sure to experiment with our unique color scheme designer and color scheme generator, in order to get the full Paletton experience. ScaleAnimationConfig: ScaleAnimationConfig( ,ĪnimationConfig: const FanAnimationConfig( / starting radius of the donut shaped wheel / height of each piece (outerRadius - innerRadius of a piece) / size of the clickable button in the middle
/ simpleColors is a preset, you can import this from the package / fanLikeAnimationConfig is a preset, you can import this from the package / long press to open, another behaviour is clickToOpen to openīehaviour: ButtonBehaviour.longPressToOpen, You can find more examples in the example path of this repository Simple Usecase import 'package:flutter_color_picker_wheel/flutter_color_picker_wheel.dart' Ĭolor color /// you want to initialize this color in the initState method This library provides some presets which make it even easier to use this component.Īdd the dependency to your pubspec.yaml flutter_color_picker_wheel: ^0.0.1.You can use the WheelColorPickerEntr圜ontent and manage OverlayEntry yourself.You can use the WheelColorPicker directly by providing list of colors you want to include and animation configs.Flutter Color Picker Wheel is an easy to use widget which can be heavily customized.