skip to Main Content

dropdown search flutter type 'List<dynamic>' is not a subtype of type 'Map<String, dynamic>' in type cast

i am trying to make a dropdown button with firebase api DropdownSearch<Tipe>( popupProps: PopupProps.dialog( showSearchBox: true, itemBuilder: (context, item, isSelected) => ListTile( title: Text(item.name), ), ), dropdownDecoratorProps: DropDownDecoratorProps( dropdownSearchDecoration: InputDecoration( labelText: "Tipe", ), ), onChanged: (value) { setState(() { idTipe…

VIEW QUESTION

Firebase – How to get Firestore collectionGroup datas as an Observable in Angular?

From the https://firebase.google.com/docs/firestore/query-data/queries documentation snippet, Im unable to get the results as an Observable import { collectionGroup, query, where, getDocs } from "firebase/firestore"; const museums = query(collectionGroup(db, 'landmarks'), where('type', '==', 'museum')); const querySnapshot = await getDocs(museums); querySnapshot.forEach((doc) => { console.log(doc.id,…

VIEW QUESTION

Firebase geo query vs greater than condition

I have a query: const q = query( collection(db, '/listings'), where('price', '>=', 4000), orderBy('price', 'desc'), orderBy('geoHash'), startAt(b[0]), endAt(b[1]), limit(DEFAULT_LIMIT_OF_LISTINGS), ) as Query<IListing>; If I remove where('price', '>=', 4000)," it works fine with the geoHash condition. if I remove geoHash condition…

VIEW QUESTION
Back To Top
Search