ajilo297 / flutter_tree_view

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

context.dependOnInheritedWidgetOfExactType has changed Syntax #13

Open Wissperwind opened 3 years ago

Wissperwind commented 3 years ago

Hi, Can you please update your Demo project to working condition? if you import from pub dev: TreeView has no parameter startExpanded and there is no class TreeViewChild

also please have a look at the new syntax at context.dependOnInheritedWidgetOfExactType See here: https://stackoverflow.com/questions/59304242/inheritfromwidgetofexacttype-is-deprecated-use-dependoninheritedwidgetofexacttyp

Wissperwind commented 3 years ago

So, to everyone else, I advise downloading the code and fixing context.dependOnInheritedWidgetOfExactType