Fix title may always be default title

This commit is contained in:
2024-06-03 04:55:22 +00:00
committed by GitHub
parent 727d3ecbe3
commit 760f36cfb9
7 changed files with 40 additions and 28 deletions

View File

@@ -38,7 +38,7 @@ final _router = GoRouter(
routes: [
GoRoute(
path: HomePage.routeName,
builder: (context, state) => const HomePage(),
builder: (context, state) => HomePage(key: state.pageKey),
),
GoRoute(
path: ServerUrlSettingsPage.routeName,
@@ -212,7 +212,7 @@ final _router = GoRouter(
}),
GoRoute(
path: UsersPage.routeName,
builder: (context, state) => const UsersPage(),
builder: (context, state) => UsersPage(key: state.pageKey),
),
GoRoute(
path: NewUserPage.routeName,