flutter_tree_with_breadcrumb 0.1.2 copy "flutter_tree_with_breadcrumb: ^0.1.2" to clipboard
flutter_tree_with_breadcrumb: ^0.1.2 copied to clipboard

Flutter tree select with breadcrumb widget.

packages #

Flutter tree select with breadcrumb widget.

Screenshot #

flutter_tree_with_breadcrumb

Usage #

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

dependencies:
  flutter_tree_with_breadcrumb: ^0.1.2

Use as a widget

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Flutter tree with breadcrumb')),
      body: Container(
        child: FlutterTreePro(
          listData: treeListData,
          config: Config(
            parentId: 'parent_id',
            label: 'value',
          ),
          isNotRootNode: (Map<String, dynamic> treeNode, Config config) {
            final parentId = treeNode[config.parentId];
            return parentId != null &&
                parentId != "0";
          },
          onChecked: (Map<String, dynamic> sourceTreeMap,
                      List<Map<String, dynamic>> checkedList,
                      bool isNullCheckedNodeChecked) {},
        ),
      ),
    );
  }

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
0
likes
130
points
32
downloads

Publisher

verified publisherneday.cn

Weekly Downloads

Flutter tree select with breadcrumb widget.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, logger

More

Packages that depend on flutter_tree_with_breadcrumb