Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return Card(
- child: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- children: <Widget>[
- Padding(
- padding: const EdgeInsets.all(10.0),
- child: this.image!=null ? CachedNetworkImage(
- imageUrl: this.image,
- imageBuilder: (context, imageProvider) => Container(
- width: 60.0,
- height: 60.0,
- decoration: BoxDecoration(
- shape: BoxShape.circle,
- image: DecorationImage(
- image: imageProvider, fit: BoxFit.cover),
- ),
- ),
- placeholder: (context, url) => CircularProgressIndicator(),
- errorWidget: (context, url, error) => Icon(Icons.error),
- )
- :
- CachedNetworkImage(
- imageUrl: 'https://www.adler-colorshop.com/media/image/a2/5d/c2/farbtoene-ferrocolor-weiss.jpg',
- imageBuilder: (context, imageProvider) => Container(
- width: 60.0,
- height: 60.0,
- decoration: BoxDecoration(
- shape: BoxShape.circle,
- image: DecorationImage(
- image: imageProvider, fit: BoxFit.cover),
- ),
- ),
- placeholder: (context, url) => CircularProgressIndicator(),
- errorWidget: (context, url, error) => Icon(Icons.error),
- )
- ),
- Column(
- children: <Widget>[
- Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: <Widget>[
- Text(gasStationName),
- SizedBox(height: 10,),
- Text(location,
- style: TextStyle(
- color: Colors.grey,
- ),
- ),
- ],
- ),
- ],
- ),
- Spacer(),
- Padding(
- padding: EdgeInsets.fromLTRB(50, 0, 0, 0),
- child: Row(children:gasPrices)),
- ],
- ),
- ),
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement