Closed SchabanBo closed 2 months ago
Aren't nested navigators possible at the moment? I created navigator in a main router with
FutureBuilder(
future: QR.createNavigator('app', routes: ...),
builder: (BuildContext context, AsyncSnapshot<Widget> snapshot) {
if (snapshot.hasData) {
return snapshot.data!;
} else {
return const SizedBox();
}
},
),
and it kinda works. The only problem is when I removed navigator, routes stayed in treeInfo.namePath
, and because of that I could not create navigator with same routes again.
The idea is to add a new navigator with his own routes and then navigate in it using
QR.navigatorOf(navigatorName).removeLast();
To clear:
Sample code