[go_router_builder] Replace mentions of deprecated `buildPage` with `buildPageWithState` (#2535)

diff --git a/packages/go_router_builder/CHANGELOG.md b/packages/go_router_builder/CHANGELOG.md
index 880e5f8..b04d17c 100644
--- a/packages/go_router_builder/CHANGELOG.md
+++ b/packages/go_router_builder/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.0.11
+
+* Replaces mentions of the deprecated `GoRouteData.buildPage` with `GoRouteData.buildPageWithState`.
+
 ## 1.0.10
 
 * Adds a lint ignore for deprecated member in the example. 
diff --git a/packages/go_router_builder/README.md b/packages/go_router_builder/README.md
index 500ebff..73830a3 100644
--- a/packages/go_router_builder/README.md
+++ b/packages/go_router_builder/README.md
@@ -279,15 +279,14 @@
 
 If you'd like to change how the page is created, e.g. to use a different page
 type, pass non-default parameters when creating the page (like a custom key) or
-access the `GoRouteState` object, you can override the `buildPage` method of the
-base class instead of the `build` method:
+access the `GoRouteState` object, you can override the `buildPageWithState`
+method of the base class instead of the `build` method:
 
 ```dart
 class MyMaterialRouteWithKey extends GoRouteData {
   static final _key = LocalKey('my-route-with-key');
-
   @override
-  MaterialPage<void> buildPage(BuildContext context) =>
+  MaterialPage<void> buildPageWithState(BuildContext context, GoRouterState state) =>
     MaterialPage<void>(
       key: _key,
       child: MyPage(),
@@ -297,12 +296,12 @@
 
 ### Custom transitions
 
-Overriding the `buildPage` method is also useful for custom transitions:
+Overriding the `buildPageWithState` method is also useful for custom transitions:
 
 ```dart
 class FancyRoute extends GoRouteData {
   @override
-  MaterialPage<void> buildPage(BuildContext context, GoRouterState state) =>
+  MaterialPage<void> buildPageWithState(BuildContext context, GoRouterState state) =>
     CustomTransitionPage<void>(
       key: state.pageKey,
       child: FancyPage(),
diff --git a/packages/go_router_builder/example/lib/main.dart b/packages/go_router_builder/example/lib/main.dart
index 5a11886..e58a5ac 100644
--- a/packages/go_router_builder/example/lib/main.dart
+++ b/packages/go_router_builder/example/lib/main.dart
@@ -130,13 +130,13 @@
   final int? $extra;
 
   @override
-  // ignore: deprecated_member_use_from_same_package
-  Page<void> buildPage(BuildContext context) {
+  Page<void> buildPageWithState(BuildContext context, GoRouterState state) {
     final Family family = familyById(fid);
     final Person person = family.person(pid);
 
     return MaterialPage<Object>(
       fullscreenDialog: true,
+      key: state.pageKey,
       child: PersonDetailsPage(
         family: family,
         person: person,
diff --git a/packages/go_router_builder/example/pubspec.yaml b/packages/go_router_builder/example/pubspec.yaml
index f4bc1f1..90edafe 100644
--- a/packages/go_router_builder/example/pubspec.yaml
+++ b/packages/go_router_builder/example/pubspec.yaml
@@ -8,7 +8,7 @@
 dependencies:
   flutter:
     sdk: flutter
-  go_router: ^4.0.0
+  go_router: ^4.4.1
   provider: ^6.0.0
 
 dev_dependencies:
diff --git a/packages/go_router_builder/pubspec.yaml b/packages/go_router_builder/pubspec.yaml
index 902bf07..ac221ea 100644
--- a/packages/go_router_builder/pubspec.yaml
+++ b/packages/go_router_builder/pubspec.yaml
@@ -2,7 +2,7 @@
 description: >-
   A builder that supports generated strongly-typed route helpers for
   package:go_router
-version: 1.0.10
+version: 1.0.11
 repository: https://github.com/flutter/packages/tree/main/packages/go_router_builder
 issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+go_router_builder%22