Skip to content

Remove usage of useMaterial3: true from ThemeData#2383

Merged
domesticmouse merged 1 commit intoflutter:mainfrom
AbdeMohlbi:issue_162818_codelabs_part
Feb 26, 2026
Merged

Remove usage of useMaterial3: true from ThemeData#2383
domesticmouse merged 1 commit intoflutter:mainfrom
AbdeMohlbi:issue_162818_codelabs_part

Conversation

@AbdeMohlbi
Copy link
Contributor

@AbdeMohlbi AbdeMohlbi commented Feb 26, 2026

Part of #162818

  • I read the Effective Dart: Style recently, and have followed its advice.
  • I signed the CLA.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-devrel channel on Discord.

Removed the useMaterial3 property from ThemeData.
Copy link

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

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 removes the deprecated useMaterial3: true property from a ThemeData instance in a Flutter codelab example. Since Material 3 is now the default theme in recent Flutter versions, this explicit opt-in is redundant. The change is correct and I have found no issues.

@domesticmouse domesticmouse merged commit 36a8d72 into flutter:main Feb 26, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants