I have tried repairing the cache using flutter pub cache repairand also cleaned the project cache using flutter clean.It still doesn't work.
/C:/Users/Phili/AppData/Local/Pub/Cache/hosted/pub.dev/pinput-2.2.20/lib/src/pinput_state.dart:339:14: Error: The method 'FocusTrapArea' isn't defined for the class '_PinputState'.
anyone answer please
I had the same issue when I cloned a flutter open source project from Github.
I resolved it by upgrading the pinput package to its latest version.
At the time of writing this answer, the latest pinput version is 2.2.31.
Follow these steps:
pubspec.yaml file, change the pinput to the latest version.flutter cleanflutter run, it will internally call flutter pub get for you.
sorry this is coming late! I experienced mine when I updated my Flutter version to 3.7 so what I did was to update the Piput package version to the latest version and that solved mine for me. I hope it helps. I could not fully figure out what happen why it broke my app the first time but it was intuitive for me to upgrade the pinput package.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With