Skip to content

Error on Scroll if controller property is set #7

Description

@korafdavid

AutoComplete widget create an error onscroll if the controller property is set.

In order to recreate set Autocomplete is a large form that needs to be scrolled.
It seems like it's disposed or needs rebuilt when it's no longer on screen.

`
Form(
key: formkey,
child: ListView(
shrinkWrap: true,
children: [

                TextField(
                  controller: controllers['CompanyName'],
                  decoration: InputDecoration(
                    hintText: "Name of Company",
                    enabledBorder: AppStyles.authBorder,
                    focusedBorder: AppStyles.authBorder,
                    border: AppStyles.authBorder,
                    fillColor: Colors.transparent,
                    filled: true,
                  ),
                ),
        
                ChipsInputAutocomplete(
                  options: industryValues,
                  createCharacter: ' ',
                  controller: chipController,
                  widgetContainerDecoration: BoxDecoration(
                    border: Border.all(color: Colors.grey),
                    borderRadius: BorderRadius.circular(10),
                  ),
                ),

                TextField(
                  controller: controllers['CompanyName'],
                  decoration: InputDecoration(
                    hintText: "Name of Company",
                    enabledBorder: AppStyles.authBorder,
                    focusedBorder: AppStyles.authBorder,
                    border: AppStyles.authBorder,
                    fillColor: Colors.transparent,
                    filled: true,
                  ),
                ),


              ],
            ),
          ),

`

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions