A handy tree list with reorder feature. It accepts a tree struct and display according to the tree list struct. You can also customize the organization.
A reorder tree list widget for flutter.
Using the library #
/example/ folder in the GitHub repo
contains a full Flutter app with demo examples.
1. Depend on it #
Add this to your package's pubspec.yaml file:
dependencies: reorder_tree_list: ^0.1.1
2. Install it #
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
3. Import it #
Now in your Dart code, you can use:
import 'package:reorder_tree_list/extension_reorder_list.dart'; import 'package:reorder_tree_list/tree_list_item.dart';