Horje
future: FirebaseFirestore.instance.collection Code Example
future: FirebaseFirestore.instance.collection
class UserInformation extends StatefulWidget {
  @override
    _UserInformationState createState() => _UserInformationState();
}

class _UserInformationState extends State<UserInformation> {
  final Stream<QuerySnapshot> _usersStream = FirebaseFirestore.instance.collection('users').snapshots();

  @override
  Widget build(BuildContext context) {
    return StreamBuilder<QuerySnapshot>(
      stream: _usersStream,
      builder: (BuildContext context, AsyncSnapshot<QuerySnapshot> snapshot) {
        if (snapshot.hasError) {
          return Text('Something went wrong');
        }

        if (snapshot.connectionState == ConnectionState.waiting) {
          return Text("Loading");
        }

        return ListView(
          children: snapshot.data!.docs.map((DocumentSnapshot document) {
          Map<String, dynamic> data = document.data()! as Map<String, dynamic>;
            return ListTile(
              title: Text(data['full_name']),
              subtitle: Text(data['company']),
            );
          }).toList(),
        );
      },
    );
  }
}




Whatever

Related
find weight of lasgerst indepent set array Code Example find weight of lasgerst indepent set array Code Example
captureEvents Code Example captureEvents Code Example
rename mac computer in jamf Code Example rename mac computer in jamf Code Example
http://dl2.sgegrv8ergs4sd555dsfa6bv8ajfg545.xyz/Series/2019/Mr.Robot/s01/1080p.10bit/ Code Example http://dl2.sgegrv8ergs4sd555dsfa6bv8ajfg545.xyz/Series/2019/Mr.Robot/s01/1080p.10bit/ Code Example
checkboxcontrolvalueaccessor example Code Example checkboxcontrolvalueaccessor example Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7