Created
February 17, 2020 08:40
-
-
Save PeterHdd/ee4cc0ec397ef3ba7332438bcdf26e66 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body: StreamBuilder( | |
stream: dbRef.onValue, | |
builder: (context, AsyncSnapshot<Event> snapshot) { | |
if (snapshot.hasData) { | |
lists.clear(); | |
DataSnapshot dataValues = snapshot.data.snapshot; | |
Map<dynamic, dynamic> values = dataValues.value; | |
values.forEach((key, values) { | |
lists.add(values); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment