Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: "type 'String' is not a subtype of type 'List<dynamic>' " while response data from stream #9

Closed
ntancnit opened this issue Nov 24, 2019 · 5 comments

Comments

@ntancnit
Copy link

Screen Shot 2019-11-24 at 2 05 43 PM

The exception logged while call JsonTable(json) inside StreamBuilder. it is run well while stand alone (the commented code). It make me 4 hours, and I am stuck right now.
@apgapg
Copy link
Owner

apgapg commented Nov 24, 2019

Please ensure that data passed to JsonTable is List only. May be before adding data to streambuilder it returns string. Check data type before passing it into table in stream builder.

@ntancnit
Copy link
Author

The input data to JsonTable is now hardcode.
It is work well when stand without streamBuilder.
The Table input is not depend on snapshot response data.

@apgapg
Copy link
Owner

apgapg commented Nov 24, 2019 via email

@ntancnit
Copy link
Author

Screen Shot 2019-11-24 at 3 18 20 PM

JsonTable work fine when I handle snapshotConnectionState as the pic above.

Thanks for the support.

@apgapg
Copy link
Owner

apgapg commented Nov 24, 2019

Yes this is the correct way to handle it. Glad you fixed it

@apgapg apgapg closed this as completed Nov 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants