Tree search dropdown in flutter

Job ID: 32192321

Budget: €8 – €30 EUR

I’m developing a mobile app using flutter framework with dart language, and I need a tree model dropdown, like in the first image.
In this component, we have a list of objects that contain objects (that are also selectable). I want to be able to search (in the search bar in the top) for the father objects or son objects.
Example:
I have 3 father nodes: A, B, C and for each one I have 2 son nodes.
A - A1, A2,
B - B1, B2
C - C1, C2
The first son node inside the father, must be all son nodes and if I click it, it will select all son nodes.
Whenever I click in a node (father or son) will select/deselect it.
If I click a father node, will also select all son nodes and put a selected icon in the father node, however if I select son nodes (but not all) the mark will appear as the second image.
In the end, I want to show the selected nodes as in the last image.
Related categories: Dart Flutter