ajilo297 / flutter_tree_view

A Flutter package to create an easily customisable Tree View
MIT License
66 stars 19 forks source link

add example with json data to build treeview #5

Closed kprathap23 closed 5 years ago

kprathap23 commented 5 years ago

Can you please add am example to load treeview with json data

kprathap23 commented 5 years ago

can you please tell me when can u add an example with json. i have written json parsing code but not working.. if u add example that will be helpful to me . thanks.

ajilo297 commented 5 years ago

@kprathap23 It would help if I know how the JSON object you are trying to populate is structured.

kprathap23 commented 5 years ago

here is my json data

Here is my code https://www.dropbox.com/s/x0sed0e41tmm9fm/CompaniesPage.dart?dl=0

class Company {
   Company();
   String CompanyId;
   String CompanyName;
   List<Company> company = new List<Company>();
}
kprathap23 commented 5 years ago

Please add example with json data. waiting for your reply. thank you.

https://stackoverflow.com/questions/57784727/flutter-treeview-json-data-parsing