qlevar_router
qlevar_router copied to clipboard
Wrong path selection
Consider the following scenario:
QRoute(
path: '/schedule',
name: schedule,
builder: () => const ScheduleView(),
),
QRoute(
path: '/scheduleDetailed',
name: scheduleDetailed,
builder: () => const ScheduleDetailedView(),
),
First time you switch your view to "schedule", it shows the "ScheduleView", correct. Second time you switch to "schedule", it shows the "ScheduleDetailedView", wrong.
My temporary fix: I replaced '/scheduleDetailed' path with '/detailed' and now '/schedule' path works fine everytime I switch to it.