Repository navigation
Migrate the Flutter samples to material_ui - #26
Merged
brionmario merged 1 commit intoNov 12, 2026
Merged
Conversation
UdeshAthukorala
force-pushed
the
migrate-flutter-material-ui
branch
from
November 12, 2026 06:18
65aa9fe to
75cff47
Compare
Signed-off-by: UdeshAthukorala <udeshathukorala@gmail.com>
UdeshAthukorala
force-pushed
the
migrate-flutter-material-ui
branch
from
November 12, 2026 09:12
a9ae6f8 to
54320ea
Compare
UdeshAthukorala
marked this pull request as ready for review
November 12, 2026 09:37
brionmario
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Flutter 3.50.0 deprecates
package:flutter/material.dartin favor of the standalonematerial_uipackage.flutter analyzereports each import as an issue, so the🦋 Analyze & Buildjobs forquickstarts/flutterandintegrations/flutter-app-authfail on every pull request. Flutter 3.50.0 also requires Gradle 9.3.1, Android Gradle Plugin 9.1.1 and Kotlin Gradle Plugin 2.4.10 or later, so the Android builds fail too. This migrates both samples tomaterial_uiand to the Flutter 3.50 Android toolchain.Approach
package:flutter/material.dartwithpackage:material_ui/material_ui.dartin both samples, the same changedart fix --apply --code=migrate_design_widgetsmakes, and kept the package imports sorted.material_ui: ^1.11.0to both pubspecs. It requires Flutter 3.47 and Dart 3.13, so theenvironmentconstraints and the README prerequisites now say Flutter 3.47 or later.quickstarts/flutterrendersthunderid_flutterwidgets (SignIn,SignUp,UserProfile,UserAvatar,ChangeCredential,BaseSignOutButton), which still build onpackage:flutter/material.dart. Wrapped the app inMaterialUiCompatibilityBridgethroughMaterialApp.builder, as thematerial_uimigration guide describes, so those widgets resolve the app's theme and localizations.material_uimarks the bridge itself as deprecated, as a temporary migration utility, so that line carries anignore: deprecated_member_useuntilthunderid_fluttermoves tomaterial_ui.integrations/flutter-app-authrenders only its own widgets and does not need the bridge.thunderid_fluttertext fields and ink effects also need aMaterialancestor frompackage:flutter/material.dart, and thematerial_uibottom sheet now provides amaterial_uiMaterialinstead, so the sign-in sheet failed withNo Material widget found. Added a smallLegacyMaterialwrapper (a transparent legacyMaterial) around the surfaces that host those widgets: the sign-in and sign-up sheet, the Manage Account sections andProfileScreen.android.newDsl=falseandandroid.builtInKotlin=falseflags togradle.properties, and replaced thekotlinOptionsblock withkotlin { compilerOptions }..envwas left out of the APK and the app failed at startup. SetandroidResources.ignoreAssetsPatternto that default without.*.material_uibecause the dependency graph reports its BSD-3-Clause license with the non-SPDX lowercase idbsd-3-clause. Addedpkg:pub/material_uitoallow-dependencies-licensesinpr-builder.yml, next tothunderid_flutter, which is allowed for the same reason.integrations/flutter-app-auth/pubspec.lockis not regenerated in this change.flutter pub getaddsmaterial_uito it on the next run.Verification: all PR Builder checks pass, including
flutter analyzeandflutter build apk --debugfor both Flutter samples and Dependency Review. Ranquickstarts/flutterwith Flutter 3.50.0 on an Android emulator against a local ThunderID server: the sign-in sheet renders, sign-in completes to the home screen, and Manage Account > Security > Change Password renders its form, with no Material errors in the log.Screenshots
Sign-in sheet, home screen after sign-in, and Change Password on an Android emulator:
Related Issues
Related PRs
Checklist
breaking changelabel added.Security checks