Skip to content

Migrate example image_list to material_ui - #190363

Merged
auto-submit[bot] merged 3 commits into
flutter:masterfrom
justinmc:example-migrations
Aug 7, 2026
Merged

auto-submit[bot] merged 3 commits into
flutter:masterfrom
justinmc:example-migrations

Conversation

@justinmc

@justinmc justinmc commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Migrates the image_list example to material_ui.

Part of #190093.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jul 31, 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 31, 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 core SDK import package:flutter/material.dart with an external package material_ui in the flutter_view and image_list examples, adding it as a dependency in their pubspec.yaml files. The review feedback notes that replacing the official Flutter SDK libraries with an external package introduces supply chain risks and architectural regressions, and recommends reverting to the built-in SDK.

Comment thread examples/flutter_view/lib/main.dart Outdated
import 'package:flutter/material.dart';

import 'package:flutter/services.dart';
import 'package:material_ui/material_ui.dart';

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

Replacing the core SDK package package:flutter/material.dart with an external package material_ui is a security risk and an architectural regression. Flutter examples must use the official Flutter SDK libraries.

Suggested change
import 'package:material_ui/material_ui.dart';
import 'package:flutter/material.dart';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we love risks

Comment thread examples/flutter_view/pubspec.yaml Outdated
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 material_ui as a dependency. Flutter examples should rely on the built-in flutter SDK for Material Design components.

import 'package:flutter/material.dart';

import 'package:flutter/services.dart';
import 'package:material_ui/material_ui.dart';

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

Replacing the core SDK package package:flutter/material.dart with an external package material_ui is a security risk and an architectural regression. Flutter examples must use the official Flutter SDK libraries.

Suggested change
import 'package:material_ui/material_ui.dart';
import 'package:flutter/material.dart';

# Use with the CupertinoIcons class for iOS style icons.


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 material_ui as a dependency. Flutter examples should rely on the built-in flutter SDK for Material Design components.

@justinmc
justinmc force-pushed the example-migrations branch from 06f40c9 to 513e014 Compare July 31, 2026 18:22
@justinmc justinmc changed the title Migrate examples flutter_view and image_list to material_ui Migrate example image_list to material_ui Jul 31, 2026

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

Should we remove 'examples/image_list/lib/main.dart', in dev/bots/check_examples_cross_imports.dart

@justinmc

Copy link
Copy Markdown
Contributor Author

Ah I forgot, thank you @QuncCccccc!

@justinmc
justinmc requested a review from QuncCccccc July 31, 2026 19:22

@QuncCccccc QuncCccccc 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!

@justinmc

justinmc commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

The Google failure seems unrelated? I'm pushing a rebase.

@justinmc
justinmc force-pushed the example-migrations branch from e6298d0 to 2ef31a0 Compare August 5, 2026 23:27
@justinmc justinmc added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 6, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Aug 6, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Aug 6, 2026
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 6, 2026
@justinmc justinmc added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 7, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Aug 7, 2026
Merged via the queue into flutter:master with commit 9f48e44 Aug 7, 2026
27 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 7, 2026
@justinmc
justinmc deleted the example-migrations branch August 7, 2026 23:04
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