Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. class AddCard extends StatelessWidget {
  2. AddCard({Key key, this.imgpng, this.imgtxt}) :
  3. super(key: key);
  4.  
  5. final String imgpng;
  6. final String imgtxt;
  7.  
  8. Widget build(BuildContext context) {
  9. return Card(
  10. elevation: 10,
  11. margin: EdgeInsets.all(25.0),
  12. child: Container(
  13. padding: EdgeInsets.all(15.0),
  14. child: Column(
  15. children: <Widget>[
  16. Image.asset(imgpng),
  17. Text("\n\n" + imgtxt)
  18. ],
  19. )
  20. ),
  21. );
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement