how to do suggestionCallback in typeahead flutter?

Issue i’m beginner in flutter, in my flutter project i used flutter_typeahead package but i did not able to execute this code. i did not get proper guidance from this documentation https://pub.dev/documentation/flutter_typeahead/latest/flutter_typeahead/flutter_typeahead-library.html suggestionsCallback: (pattern) { return CitiesService.getSuggestions(pattern); } Solution The

Continue reading

Flutter TypeAhead Issue

Issue I am trying to implement the Flutter Typeahead based on the following link: Flutter TypeAhead class _CallAddState extends State<CallAdd> { final GlobalKey<FormState> _formKey = GlobalKey<FormState>(); final TextEditingController _typeAheadController = TextEditingController(); var SerVerConfig = [ { “name”:”Mike”, “id”:”1″ }, {

Continue reading

Flutter add to List<Widget> crashes beacuase of type issues

Issue I have an issue I don’t understand. Widget build(BuildContext context) { List<Widget> menuList = menuCategories.map((category) { return ExpansionTile( title: CustomExpansionTileHeader( icon: category.icon, label: category.label, ), children: category.children .map((item) => ListTile( title: Text(item.label), onTap: item.onTap, )) .toList()); }).toList(); print(menuList); menuList.insert(

Continue reading