flutter_tree_pro 0.0.14 copy "flutter_tree_pro: ^0.0.14" to clipboard
flutter_tree_pro: ^0.0.14 copied to clipboard

Flutter tree select widget.You can use it to select tree nodes.This is also support RTL.

packages #

Flutter tree select widget.

Screenshot #

flutter_tree

Usage #

To use this plugin, add flutter_tree_pro as a dependency in your pubspec.yaml file.

dependencies:
  flutter_tree_pro: ^0.0.9
copied to clipboard

Use as a widget

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Flutter tree pro')),
      body: Container(
        child: FlutterTree(
          listData: treeListData,
          initialListData: initialTreeData,
          config: Config(
            parentId: 'parentId',
            dataType: DataType.DataList,
            label: 'value',
          ),
          onChecked: (List<Map<String, dynamic>> checkedList) {},
        ),
      ),
    );
  }
copied to clipboard

Property #

property description
listData The data source
initialListData The initial data source
parentId The key name of parent id
dataType The type of data source
label The key name of the value
onChecked The item checked callback function
isExpanded Expanded all items by default
isRTL Right to left enable
27
likes
160
points
254
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.19 - 2025.04.03

Flutter tree select widget.You can use it to select tree nodes.This is also support RTL.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, logger

More

Packages that depend on flutter_tree_pro