Skip to content

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

Merged
johnpryan merged 19 commits into
flutter:masterfrom
johnpryan:material_migrate
Sep 24, 2026
Merged

johnpryan merged 19 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
Explicitly apply theme text styles to MarkdownStyleSheet in SidePanel
to fix dark theme contrast after migrating to package:material_ui.
Also update the memory diff goldens to match the rendered upload icon.
@johnpryan
johnpryan merged commit 405689b into flutter:master Sep 24, 2026
51 checks passed
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