Filling a DataTable with Firestore and Flutter (using StreamBuilder)
问题 How to populate a DataTable using StreamBuilder? Below is my code: new StreamBuilder( stream: widget._returnStreamWithActiveKeysOnly(), builder: (BuildContext context, AsyncSnapshot<QuerySnapshot> snapshot) { if (!snapshot.hasData) return new Text('Loading...'); return new DataTable( columns: <DataColumn>[ new DataColumn( label: Text('type'), tooltip: 'Ordinary or service (1 day only, restricted time)', ), new DataColumn(label: Text('Key')), new DataColumn(label: Text('Check-in')), new