Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. Card(
  2. child: Stack(
  3. children: <Widget>[
  4. Column(
  5. mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  6. crossAxisAlignment: CrossAxisAlignment.start,
  7. children: <Widget>[
  8. Container(
  9. color: Colors.grey,
  10. height: 130,
  11. ),
  12. Column(
  13. crossAxisAlignment: CrossAxisAlignment.start,
  14. children: <Widget>[
  15. Text(product.name),
  16. Text(product.price.toString() + " yen"),
  17. ]),
  18. ],
  19. ),
  20. Positioned(
  21. right: 0.0,
  22. top: 110.0,
  23. child: RawMaterialButton(
  24. onPressed: () => model.addCartItem(product),
  25. shape: CircleBorder(),
  26. elevation: 2.0,
  27. fillColor: Colors.yellow,
  28. child: Icon(
  29. Icons.shopping_cart,
  30. size: 20,
  31. ),
  32. ))
  33. ],
  34. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement