Repository navigation
[ios_widget_catalog_compare] Migrate to cupertino_ui - #240
Merged
Merged
Conversation
6 of 8 tasks
cupertino_ui is the new location of the Cupertino widgets. The imports switch on a subsequent commit. Generated with `flutter pub add cupertino_ui` (Flutter 3.47.7), which added cupertino_ui ^1.1.3. That version needs Flutter 3.47.0 or later, and the lock now records it.
Generated with this command (Dart 3.13.5): dart fix --apply --code=migrate_design_widgets --code=directives_ordering migrate_design_widgets switches the imports, and directives_ordering sorts them. Neither lint is enabled in this app. --code turns each on for this run.
pjkammer
force-pushed
the
catalog-cupertino-ui
branch
from
October 21, 2026 16:44
7b2d411 to
d819ef7
Compare
pjkammer
marked this pull request as ready for review
October 21, 2026 16:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates ios_widget_catalog_compare from
package:flutter/cupertino.darttopackage:cupertino_ui/cupertino_ui.dart, the new location of the Cupertino widgets.Commits, both unmodified tool output:
flutter pub add cupertino_ui, which addscupertino_ui: ^1.1.3.dart fix --apply --code=migrate_design_widgets --code=directives_orderingswitcheslib/main.dartandtest/smoke_test.dart, and sortslib/main.dart's imports.Screenshots of the Flutter side of all 10 controls on an iPhone 17 Pro simulator (iOS 26.4) are the same before and after this change, below the status bar:
Tested with Flutter 3.47.7:
flutter analyze,flutter test(11 tests) anddart formatare clean, nopackage:flutter/cupertino.dartimport is left, and an iOS build changes no tracked files.Part of flutter/flutter#172942
Pre-launch Checklist
I signed the CLA.I updated/added relevant documentation (doc comments with///).Updates the widget smoke test from [ios_widget_catalog_compare] Update SDK constraint, dependencies, lints #238 to import
cupertino_uiand check for its widget types.No CI runs tests here. Locally,
flutter testpasses (11 tests).If you need help, consider asking for advice on the #hackers-new channel on Discord.