color_preview library

Classes

ColorPreview
import 'package:color_preview/color_preview.dart'; ... // Wrap Target widget with [ColorPreview]. ColorPreview( // initial Color initialColor: Colors.red, onTargetWidget: (preview) { // preview is Picked Color return Container( height: 100, width: 100, decoration: BoxDecoration( // Specify a color for the property color: preview, ), ); }, ),