title: How to fetch data from cloud firestore in flutter?
body: <p>I want to fetch contact details like phone number, email address, website url &amp; also social media urls from firestore in flutter. I done coding to show contact details directly in-app but I need to get data from firestore because it will be good for me if suppose i need to change contact details in future.</p>
  <p><strong>My coding</strong></p>
  <pre><code>import 'package:cloud_firestore/cloud_firestore.dart';
  
  class AboutPage extends StatelessWidget {
    const AboutPage({Key key}) : super(key: key);
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        backgroundColor: LightColor.white,
        appBar: CustomAppBar(
          isBackButton: true,
          title: customTitleText(
            'Contact us',
          ),
        ),
        body: ListView(
          physics: BouncingScrollPhysics(),
          children: &lt;Widget&gt;[
            HeaderWidget(
              'Feel free to contact us',
              secondHeader: true,
            ),
            SettingRowWidget(
              &quot;Phone&quot;,
              vPadding: 0,
              showDivider: false,
              onPressed: () {
                Utility.launchURL(///i want to display this url from firestore///
                    &quot;tel:+918889999888&quot;);
              },
            ),
            
            HeaderWidget('Social media'),
            SettingRowWidget(&quot;Facebook&quot;, showDivider: true, onPressed: () {
              Utility.launchURL( ///i want to display this url from firestore/// 
  &quot;https://facebook.com/ecways&quot;);
            }),
  
        HeaderWidget('Website'),
            SettingRowWidget(&quot;Open website&quot;, showDivider: true, onPressed: () {
              Utility.launchURL( ///i want to display this url from firestore/// 
  &quot;https://facebook.com/&quot;);
            }),    
            
          ],
        ),
      );
    }
  }
  </code></pre>
  <p>I created firestore database with collection name &quot;my_contact&quot; and document name &quot;details&quot; and also i created field for phone, email, website and extra. Now i just want to know how to display that collection in my app with my coding.</p>
  <p><img src="https://i.stack.imgur.com/uclBY.jpg" alt="Firestore screenshot" /></p>