Skip to content

Migrate platform_view example to material_ui - #190309

Merged
auto-submit[bot] merged 1 commit into
flutter:masterfrom
QuncCccccc:platform_view_example_material_ui
Aug 6, 2026
Merged

auto-submit[bot] merged 1 commit into
flutter:masterfrom
QuncCccccc:platform_view_example_material_ui

Conversation

@QuncCccccc

Copy link
Copy Markdown
Contributor

Migrates the platform_view example to import material_ui.

Related to #190093.

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [AI contribution guidelines] and understand my responsibilities, or I am not using AI tools.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • I followed the [breaking change policy] and added [Data Driven Fixes] where supported.
  • All existing and new tests are passing.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jul 30, 2026
@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@github-actions github-actions Bot added the d: examples Sample code and demos label Jul 30, 2026

@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 the first-party package:flutter/material.dart import with the third-party package:material_ui/material_ui.dart in the platform_view example, adds material_ui as a dependency, and removes the example from the cross-import check list. Feedback recommends reverting these changes to ensure Flutter examples exclusively use first-party SDK packages and remain covered by the cross-import checks.

Comment thread examples/platform_view/lib/main.dart
Comment on lines 10 to +11
sdk: flutter
material_ui: ^0.0.2

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.

security-critical critical

Do not add the external material_ui package as a dependency. Core Flutter examples must rely on the built-in Flutter SDK libraries.

    sdk: flutter

Comment thread dev/bots/check_examples_cross_imports.dart Outdated
justinmc
justinmc previously approved these changes Jul 30, 2026

@justinmc justinmc 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.

LGTM 👍

@navaronbracke

Copy link
Copy Markdown
Contributor

Looks like the failure is unrelated to your change. I'd rebase and try again

navaronbracke
navaronbracke previously approved these changes Jul 30, 2026
@QuncCccccc
QuncCccccc dismissed stale reviews from navaronbracke and justinmc via 025af63 July 31, 2026 18:11
@QuncCccccc
QuncCccccc force-pushed the platform_view_example_material_ui branch from a63a941 to 025af63 Compare July 31, 2026 18:11

@justinmc justinmc 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.

ReLGTM 👍

@QuncCccccc
QuncCccccc force-pushed the platform_view_example_material_ui branch 2 times, most recently from 57ae36a to 18b4a74 Compare August 5, 2026 17:43
@QuncCccccc QuncCccccc added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 5, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 5, 2026
@auto-submit

auto-submit Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/190309, because - The status or check suite Mac_arm64_verify_binaries has failed. Please fix the issues identified (or deflake) before re-applying this label.

  • The status or check suite Tree_analyze has failed. Please fix the issues identified (or deflake) before re-applying this label.
  • The status or check suite Dashboard Checks has failed. Please fix the issues identified (or deflake) before re-applying this label.

@QuncCccccc
QuncCccccc force-pushed the platform_view_example_material_ui branch from 18b4a74 to 655a3dd Compare August 5, 2026 22:25
@QuncCccccc QuncCccccc added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 5, 2026

@justinmc justinmc 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.

LGTM 👍

@auto-submit
auto-submit Bot added this pull request to the merge queue Aug 6, 2026
Merged via the queue into flutter:master with commit c6bde29 Aug 6, 2026
22 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD d: examples Sample code and demos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants