anusii / podnotes

GNU General Public License v3.0
2 stars 3 forks source link

POD NOTES: Use inbuilt AutoComplete rather than flutter_typeahead #111

Closed gjwgit closed 1 month ago

gjwgit commented 2 months ago

Description

I am currently seeing the following for main branch of notepod on Linux

ERROR: lib/notes/share_note.dart:501:17: Error: The method 'TypeAheadFormField' isn't defined for the class '_ShareNoteState'.
ERROR:  - '_ShareNoteState' is from 'package:podnotes/notes/share_note.dart' ('lib/notes/share_note.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'TypeAheadFormField'.
ERROR:                 TypeAheadFormField(
ERROR:                 ^^^^^^^^^^^^^^^^^^
ERROR: lib/notes/share_note.dart:502:43: Error: The method 'TextFieldConfiguration' isn't defined for the class '_ShareNoteState'.
ERROR:  - '_ShareNoteState' is from 'package:podnotes/notes/share_note.dart' ('lib/notes/share_note.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'TextFieldConfiguration'.
ERROR:                   textFieldConfiguration: TextFieldConfiguration(
ERROR:                                           ^^^^^^^^^^^^^^^^^^^^^^

The suggestion seems to be to not use the typeahead package but the newer inbuilt AutoComplete.

https://stackoverflow.com/questions/78539014/flutter-typeahead-package-giving-error-when-using-typeaheadformfield#:~:text=I%20am%20getting%20an%20error%3A%20The%20method%20%27TypeAheadFormField%27,method%20named%20%27TypeAheadFormField%27.%20when%20using%20the%20Typeahead%20package.

gjwgit commented 2 months ago

https://api.flutter.dev/flutter/material/Autocomplete-class.html

anushkavidanage commented 2 months ago

PodNotes now compiling as expected