Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- child: Container(
- child: Column(
- children: <Widget>[
- new FutureBuilder(
- future: Firestore.instance
- .collection('images')
- .getDocuments(),
- builder: (BuildContext context, AsyncSnapshot snapshot) {
- if (snapshot.hasData) {
- if (snapshot.data != null) {
- print(snapshot.data['homescreen_bannersrc']);
- return CachedNetworkImage(
- imageUrl: (snapshot.data['homescreen_bannersrc']),
- placeholder: (context, url) => new Center(
- child: Center(
- child: LinearProgressIndicator()),
- ),
- errorWidget: (context, url, error) =>
- new Icon(Icons.error),
- fit: BoxFit.fitWidth,
- );
- }
- }
- },
- ),
- ],
- ),
- ),
- ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement