Home > Mobile >  Flutter - RawAutocomplete - How to use textEditingController without fieldViewBuilder?
Flutter - RawAutocomplete - How to use textEditingController without fieldViewBuilder?

Time:07-13

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

  • Related