Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Card(
- child: Stack(
- children: <Widget>[
- Column(
- mainAxisAlignment: MainAxisAlignment.spaceEvenly,
- crossAxisAlignment: CrossAxisAlignment.start,
- children: <Widget>[
- Container(
- color: Colors.grey,
- height: 130,
- ),
- Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: <Widget>[
- Text(product.name),
- Text(product.price.toString() + " yen"),
- ]),
- ],
- ),
- Positioned(
- right: 0.0,
- top: 110.0,
- child: RawMaterialButton(
- onPressed: () => model.addCartItem(product),
- shape: CircleBorder(),
- elevation: 2.0,
- fillColor: Colors.yellow,
- child: Icon(
- Icons.shopping_cart,
- size: 20,
- ),
- ))
- ],
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement