Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AddCard extends StatelessWidget {
- AddCard({Key key, this.imgpng, this.imgtxt}) :
- super(key: key);
- final String imgpng;
- final String imgtxt;
- Widget build(BuildContext context) {
- return Card(
- elevation: 10,
- margin: EdgeInsets.all(25.0),
- child: Container(
- padding: EdgeInsets.all(15.0),
- child: Column(
- children: <Widget>[
- Image.asset(imgpng),
- Text("\n\n" + imgtxt)
- ],
- )
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement