antd_tree 1.0.1
antd_tree: ^1.0.1 copied to clipboard
Ant Design Tree and TreeSelect for Flutter - async data, checkboxes, expand and collapse, and custom node builders.
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 #
Initial stable release of the standalone antd_tree package.
Features #
AntTree<T>renders a generic hierarchy fromdataSourceusingkeyOf,titleBuilder,childrenOf,disabledOf, andcheckableOf.- Expansion supports initial keys, expand-all, controlled
expandedKeys, and per-node switcher toggling; selection supports controlled and uncontrolled key sets and can be disabled withselectable. - Checkable mode supports parent/child cascading in both directions, derived half-checked keys reported through
onCheck, andcheckStrictlyfor independent node checks. - Guide lines (
showLine) and per-level indentation (indent) are available for deep hierarchies. AntTreeSelect<T>provides a dropdown selector over the same generic hierarchy, with single and multiple selection, labels, placeholder, clear affordance, and initial expand-all.- Tree select supports controlled and uncontrolled values, emits a key for single selection and
List<Object>for multiple selection, and sizes its trigger fromsize,height, andwidth. - The dropdown is built on the shared popup overlay: it follows the trigger width, flips and clamps within the viewport, scrolls internally, and closes on an outside tap.
- Controlled values and replaced data sources refresh correctly while the dropdown is open, including recomputed expansion keys.
- Added
AntTreeSelectSizeand theAntTree*Ofcallback typedefs.
Deprecated #
AntTreeNode,AntTreeSelectOption, andAntTreeSelectFieldNamesare deprecated in favor of a user-defined model with the generic callbacks.