Closed zoelounge closed 5 months ago
The controller should have the initial value:
controller: TextEditingController(text: 'Uganda'),
initialValue: 'Uganda',
or you should not add the controller to the instatation of the FormBuilderTypeAhead, this way the controller will be created with the initialValue value
OK thx I resolved with : controller: TextEditingController(text: 'Uganda'), initialValue: 'Uganda',
OK thx I resolved with : controller: TextEditingController(text: 'Uganda'), initialValue: 'Uganda',
Is there an existing issue for this?
Package/Plugin version
^10.1.0
Platforms
Flutter doctor
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.13.1, on macOS 14.1.1 23B81 darwin-arm64, locale it-IT) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.0.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.2) [✓] VS Code (version 1.84.2) [✓] Connected device (2 available) [✓] Network resources
Minimal code example
Current Behavior
InitialValue doesn't work well doesn't appear
Expected Behavior
initialValue should appear
Steps To Reproduce
Please see your code example in https://pub.dev/packages/form_builder_extra_fields/example
Aditional information
Thanks for your effort