mohamedHassanKa / ProductAppCourse

Flutter — Firebase FireStore CRUD Operations Using Provider
141 stars 54 forks source link

type 'List<dynamic>' is not a subtype of type 'String' #2

Closed gausoft closed 4 years ago

gausoft commented 4 years ago

I'm getting this type of error and I don't find solution yet. What is the cause of that?

Screenshot_20191220-065317

The following assertion was thrown building StreamBuilder<QuerySnapshot>(dirty, state: _StreamBuilderBaseState<QuerySnapshot, AsyncSnapshot<QuerySnapshot>>#dd569):
type 'List<dynamic>' is not a subtype of type 'String'
mohamedHassanKa commented 4 years ago

soory for late response . should be working fine now . this happened because my database was open so some people could add other attributes and this caused the app to have extra attributed not defined in the model