refresh StatefulShellRoute in flutter
Asked Answered
P

0

6

here is the scenario, Im using StatefulShellRoute to preserve the state of each tab in my app, and when user sign in, or change language of the app, i need to refresh my StatefulShellRoute to load new data.

i tried giving a UniqueKey to each StatefulShellBranch but when i hot reload or use inspector it rebuild the whole application which is bad for performance and development flow.

so is there any clean way to refresh my StatefulShellRoute ?

Pendley answered 29/7, 2023 at 21:41 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.