I have such a structure of my UI:
TabBarView(children:[_Fragment1,_Fragment2...])
_Fragment1 shows files of my user and I need to implement navigation between folders with backstack. I have listview in my _Fragment1 and when item clicked and item is a folder folder's files should be shown(only files fragment is changed). I tried make it like this but it fails:
onTap: () => (_filesList[index].isFolder)
? Navigator.push(context, MaterialPageRoute(builder: (_) => _FilesListView(_filesList[index].children)))
: null,
Is there a solution as easy as fragments in android? Maybe there are some packages that can help to make something like this.