antd_picker 1.0.1
antd_picker: ^1.0.1 copied to clipboard
Ant Design picker, cascader, date and time pickers for Flutter, with wheel columns and antd-mobile v5 interaction.
Changelog #
1.0.1 #
- Fix pub.dev static analysis results by aligning internal dependency constraints.
- Ship the package example and tighten pubspec metadata for better pub.dev scoring.
- Documentation and changelog polish.
1.0.0 #
AntPicker #
- Generic
AntPicker<T>built onAntPickerColumn<T>: columns consume your own model type, withkeyOffor identity andlabelBuilderfor rendering. - Bottom sheet presentation with title, confirm/cancel labels, independent column scrolling and mask-tap closing.
- Controlled and uncontrolled modes:
value/defaultValueaccept either models or keys;visible/onCloseallow programmatic opening and closing. onSelectreports scrolling changes andonConfirmreturns the selected model per column;itemHeightandpickerHeighttune wheel geometry.
AntCascader #
- Generic cascader
AntCascader<T>over a tree supplied bydataSource,childrenOf,keyOf,labelBuilderanddisabledOf. - Overlay panel with level-by-level expansion, click or hover triggers, clear affordance and
changeOnSelectfor committing at intermediate levels. - Controlled and uncontrolled path values; paths may contain models or keys.
sizevariants (large,middle,small) andplaceholderfor the empty state.
AntCascaderView #
- Embedded cascade view with a tab bar per level and no popup, for inline form and side-panel use.
onChangeexposes both the selected model path and per-level slots (unselected levels are null);onTabsChange,activeIconandheightcustomize navigation and layout.
AntDatePicker and AntTimePicker #
- Anchored picker panels that open below the field and close on selection.
- Controlled/uncontrolled values,
allowClear,disabled, size variants andlabelBuilder. - Date panel supports month navigation and a configurable
formatfor the field text. - Time panel supports hour, minute and second steps (
hourStep,minuteStep,secondStep). - Wheel behaviour comes from the shared engine in
antd_flutter_ui, keeping snapping and item metrics consistent with the rest of the picker family.