flutter_firestore_tut
//... | |
class _Home extends State<StatefulWidget> { | |
//... | |
void clickGet() async { | |
if (_getContr.text.isNotEmpty) { | |
var query = await Firestore.instance | |
.collection('docs') | |
.where('text', isEqualTo: _getContr.text) | |
.getDocuments(); | |
setState(() { | |
_queriedDocs = query.documents.length; | |
}); | |
interact(); | |
} | |
} | |
//... | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
//... | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment