Skip to content

Commit ed5bd29

Browse files
authored
[go_router] migrates to material_ui and cupertino_ui (flutter#12504)
fixes flutter#191133 fixes flutter#191132 ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent b2ec4e0 commit ed5bd29

86 files changed

Lines changed: 110 additions & 108 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎packages/go_router/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ See the API documentation for details on the following topics:
3838
- [State restoration](https://pub.dev/documentation/go_router/latest/topics/State%20restoration-topic.html)
3939

4040
## Migration Guides
41+
- [Migrating to 18.0.0](https://flutter.dev/go/go-router-v18-breaking-changes).
4142
- [Migrating to 17.0.0](https://flutter.dev/go/go-router-v17-breaking-changes).
4243
- [Migrating to 16.0.0](https://flutter.dev/go/go-router-v16-breaking-changes).
4344
- [Migrating to 15.0.0](https://flutter.dev/go/go-router-v15-breaking-changes).

‎packages/go_router/example/lib/async_redirection.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import 'dart:async';
66

7-
import 'package:flutter/material.dart';
87
import 'package:go_router/go_router.dart';
8+
import 'package:material_ui/material_ui.dart';
99

1010
// This scenario demonstrates how to use redirect to handle a asynchronous
1111
// sign-in flow.

‎packages/go_router/example/lib/books/main.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// found in the LICENSE file.
44

55
import 'package:collection/collection.dart';
6-
import 'package:flutter/material.dart';
76
import 'package:go_router/go_router.dart';
7+
import 'package:material_ui/material_ui.dart';
88

99
import 'src/auth.dart';
1010
import 'src/data/author.dart';

‎packages/go_router/example/lib/books/src/screens/author_details.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'package:flutter/material.dart';
65
import 'package:go_router/go_router.dart';
6+
import 'package:material_ui/material_ui.dart';
77

88
import '../data.dart';
99
import '../widgets/book_list.dart';

‎packages/go_router/example/lib/books/src/screens/authors.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'package:flutter/material.dart';
65
import 'package:go_router/go_router.dart';
6+
import 'package:material_ui/material_ui.dart';
77

88
import '../data.dart';
99
import '../widgets/author_list.dart';

‎packages/go_router/example/lib/books/src/screens/book_details.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'package:flutter/material.dart';
65
import 'package:go_router/go_router.dart';
6+
import 'package:material_ui/material_ui.dart';
77
import 'package:url_launcher/link.dart';
88

99
import '../data.dart';

‎packages/go_router/example/lib/books/src/screens/books.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'package:flutter/material.dart';
65
import 'package:go_router/go_router.dart';
6+
import 'package:material_ui/material_ui.dart';
77

88
import '../data.dart';
99
import '../widgets/book_list.dart';

‎packages/go_router/example/lib/books/src/screens/scaffold.dart‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
// found in the LICENSE file.
44

55
import 'package:adaptive_navigation/adaptive_navigation.dart';
6-
import 'package:flutter/material.dart';
7-
86
import 'package:go_router/go_router.dart';
7+
import 'package:material_ui/material_ui.dart';
98

109
/// The enum for scaffold tab.
1110
enum ScaffoldTab {

‎packages/go_router/example/lib/books/src/screens/settings.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'package:flutter/material.dart';
65
import 'package:go_router/go_router.dart';
6+
import 'package:material_ui/material_ui.dart';
77
import 'package:url_launcher/link.dart';
88

99
import '../auth.dart';

‎packages/go_router/example/lib/books/src/screens/sign_in.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'package:flutter/material.dart';
5+
import 'package:material_ui/material_ui.dart';
66

77
/// Credential data class.
88
class Credentials {

0 commit comments

Comments
 (0)