Closed macasas closed 7 months ago
Switching back to 0.18.6 and problem disappeared. Removed .pub-cache 0.20.3 and reinstalled, I guess I must have corrupted something unknowingly because all is well in the world again :-)
Sounds like a pub issue then :)
I have been using
final textEditingController = useTextEditingController();
in a project for a few weeks, no problem until this afternoon.Now this, and every other project using useTextEditingController is flagging an error.
As if
import 'package:flutter_hooks/flutter_hooks.dart';
has gone missing. When I remove the import, the lovely flutter list of options to import the correct package does not list it. I went back to the riverpod example todos which uses the same code, as soon as I clicked on the word useTextEditingController up came the same error, and this also has worked for a fortnight until now.It's as if useTextEditingController just disappeared!! Because I have useFocusNode() in the same file and it is clearly linked to package:flutter_hooks/flutter_hooks.dart
I have cleaned, pub get, etc... to the same error I have recreated pods
And when I try to
flutter run
Totally confused!