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,
                  ),
                ),


              ],
            ),
          ),

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions