You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that the problem is that debugCheckHasMaterial looks for a Material class in the ancestors, but the Material class in material_ui is a different class.
To Reproduce
Install Flutter 3.47.0
Go the example folder of pinput
Modify the pubspec.yaml to force the latest version of flutter:
sdk: ^3.13.0
flutter: '>=3.46.0'
Run the upgrader dart fix --apply --code=migrate_design_widgets
Run the example app - it will work.
Modify the example app, and replace import 'package:flutter/material.dart'; with import 'package:material_ui/material_ui.dart';
The app will no longer work.
To avoid
I can do something nasty to avoid the problem - which is to wrap the Pinput in the "old" Material class:
Activity
lukas-pierce commentedon Aug 17, 2026
Temp wrapper:
Usage:
feat!: migrate to the decoupled material_ui package (fixes Tkko#237) (T…