Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

_CastError (Null check operator used on a null value) #25

Open
egyleader opened this issue Dec 27, 2022 · 1 comment · May be fixed by #30
Open

_CastError (Null check operator used on a null value) #25

egyleader opened this issue Dec 27, 2022 · 1 comment · May be fixed by #30
Labels
bug Something isn't working

Comments

@egyleader
Copy link

when using the asynchronous data fetch example it throws this error in every change :

_CastError (Null check operator used on a null value)

on the progressIndicatorBuilder! line

the suggesstions work as expected if you ignored that exception though

image

@bohan0
Copy link

bohan0 commented Jan 13, 2023

You must pass a valid function/widget (can be simple like Container()) to the progressIndicatorBuilder param when creating EasyAutocomplete.

e.g

EasyAutocomplete(
        autofocus: true,
        onChanged: (_) {},
        progressIndicatorBuilder: Container(),
       asyncSuggestions: (searchValue) {
          //fetch results
        },
       ...
)

4inka pushed a commit that referenced this issue May 2, 2023
@4inka 4inka linked a pull request May 2, 2023 that will close this issue
@4inka 4inka added the bug Something isn't working label May 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants