How to use textEditingController without fieldViewBuilder?
I found something like this: https://api.flutter.dev/flutter/widgets/RawAutocomplete/textEditingController.html
But how to take out TextFormField from appBar and move it to body?
Is it possible? Thanks in advance.
CodePudding user response:
You can just cut and paste the TextFormField on body
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: Column(
children: [
TextFormField(...),
RawAutocomplete<String>(..),
);
}
You can also check
