Home > Software design >  Why do I get a TextFieldConfiguration?
Why do I get a TextFieldConfiguration?

Time:10-03

Why this is not working :

FormBuilderTypeAhead( textFieldConfiguration: TextFieldConfiguration(autofocus: true),

What am I doing wrong?

CodePudding user response:

TextFieldConfiguration belongs to the package flutter_typeahead (https://pub.dev/packages/flutter_typeahead). You need to import it in your code, specifcially https://pub.dev/documentation/flutter_typeahead/1.9.3/flutter_typeahead/TextFieldConfiguration-class.html

import 'package:flutter_typeahead/flutter_typeahead.dart';
  • Related