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.
WheelPicker
const WheelPicker({
super.key,
required List<String> this._items,
this.selectedIndex,
this.size,
this.initialIndex = 0,
this.onChanged,
this.height,
this.itemExtent,
this.enabled = true,
this.haptics = true,
this.isInfinity = false,
this.semanticLabel,
this.backgroundColor,
this.selectionColor,
this.textColor,
this.unselectedTextColor,
this.textStyle,
this.borderRadius,
this.showSelectionOverlay = true,
this.selectionOverlay,
this.animationDuration,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
selectedIndex | int? | No | null |
size | ComponentSize? | No | null |
initialIndex | int | No | 0 |
onChanged | ValueChanged<int>? | No | null |
height | double? | No | null |
itemExtent | double? | No | null |
enabled | bool | No | true |
haptics | bool | No | true |
isInfinity | bool | No | false |
semanticLabel | String? | No | null |
backgroundColor | Color? | No | null |
selectionColor | Color? | No | null |
textColor | Color? | No | null |
unselectedTextColor | Color? | No | null |
textStyle | TextStyle? | No | null |
borderRadius | double? | No | null |
showSelectionOverlay | bool | No | true |
selectionOverlay | Widget? | No | null |
animationDuration | Duration? | No | null |
WheelPicker.builder
const WheelPicker.builder({
super.key,
required int itemCount,
required IndexedWidgetBuilder this.itemBuilder,
this.semanticLabelBuilder,
this.selectedIndex,
this.size,
this.initialIndex = 0,
this.onChanged,
this.height,
this.itemExtent,
this.enabled = true,
this.haptics = true,
this.isInfinity = false,
this.semanticLabel,
this.backgroundColor,
this.selectionColor,
this.textColor,
this.unselectedTextColor,
this.textStyle,
this.borderRadius,
this.showSelectionOverlay = true,
this.selectionOverlay,
this.animationDuration,
});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/wheel_picker/wheel_picker.dart
This reference is generated from the WheelPicker declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

