Answers for "flutter firebase listview"

0

listviewbuilder flutter firebase

return new ListView.builder( 
    scrollDirection: Axis.vertical, 
    itemCount: snapshot.data.documents.length, 
    itemBuilder: (context, index) { 
        if (index == 0) {
            return someWidget, // return the widget you want as "header" here
        } else {
           return _buildList( context, snapshot.data.documents[index-1]), 
        }
    }
);
Posted by: Guest on November-24-2020

Code answers related to "flutter firebase listview"

Browse Popular Code Answers by Language