Skip to content

Migrate from flutter/material.dart to material_ui/material_ui.dart - #10016

Open
johnpryan wants to merge 15 commits into
flutter:masterfrom
johnpryan:material_migrate
Open

johnpryan wants to merge 15 commits into
flutter:masterfrom
johnpryan:material_migrate

Conversation

@johnpryan

Copy link
Copy Markdown
Contributor

This applies the migration using dart fix:

dart fix --apply --code=migrate_design_widgets

This is the first step towards resolving #10015.

This applies the migration using dart fix:

```
dart fix --apply --code=migrate_design_widgets
```

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces imports of the official Flutter SDK libraries ('package:flutter/material.dart' and 'package:flutter/cupertino.dart') with untrusted external packages ('package:material_ui/material_ui.dart' and 'package:cupertino_ui/cupertino_ui.dart') across numerous files, and adds these external packages as dependencies in 'pubspec.yaml'. The reviewer correctly flagged these changes as critical security risks (potential supply chain attacks) and import violations, instructing to revert the dependency additions and restore the official Flutter SDK imports.

Comment thread packages/devtools_app/pubspec.yaml Outdated
Comment thread packages/devtools_app/test/screens/debugger/syntax_highlighter_test.dart Outdated

@srawlins srawlins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woohoo!

@johnpryan johnpryan self-assigned this Sep 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants