1

this is my code to retrieve user data from firestore:

StreamBuilder(
      stream: FirebaseFirestore.instance.collection('Consultant').snapshots(),
      builder: (context, snapshot) {
        if (!snapshot.hasData)
          return Center(child: CircularProgressIndicator());
          return ListView.builder(
            padding: EdgeInsets.fromLTRB(5, 5, 5, 60),
            itemCount: snapshot.data.docs.length, 
            itemBuilder: (BuildContext context, int index) {

there is a possibility to randomize the order of the list casual?

Tizi Dev
  • 301
  • 6
  • 19
  • 2
    Does this answer your question? [List.shuffle() in Dart?](https://stackoverflow.com/questions/13554129/list-shuffle-in-dart) – dm_tr Dec 22 '20 at 13:48

0 Answers0