Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
ColorSwatchPicker
const ColorSwatchPicker({
super.key,
this.motion,
this.colors = defaultColors,
required this.selectedColor,
required this.onChanged,
this.size,
this.dimension,
this.swatchSize,
this.spacing,
this.checkColor = const Color(0xFFFFFFFF),
this.checkIconSize,
this.isDisabled = false,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
motion | ComponentMotion? | No | null |
colors | List<Color> | No | defaultColors |
selectedColor | Color? | Yes | — |
onChanged | ValueChanged<Color>? | Yes | — |
size | ComponentSize? | No | null |
dimension | double? | No | null |
swatchSize | double? | No | null |
spacing | double? | No | null |
checkColor | Color | No | const Color(0xFFFFFFFF) |
checkIconSize | double? | No | null |
isDisabled | bool | No | false |
Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/controls/color_swatch_picker/color_swatch_picker.dart
This reference is generated from the ColorSwatchPicker declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

