Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import "package:flutter/material.dart";
- void main() => runApp(MyApp());
- class MyApp extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- home: Scaffold(
- appBar: AppBar(
- centerTitle: true,
- title: Text("Albinator"),
- ),
- body:
- ListView(
- children: [
- Card(
- elevation: 10,
- margin: EdgeInsets.all(25.0),
- child: Container(
- padding: EdgeInsets.all(15.0),
- child: Column(
- children: <Widget>[
- Image.asset("assets/99hits.png"),
- Text("\n\n" + ninetyninehits)
- ],
- )
- ),
- ),
- Card(
- elevation: 10,
- margin: EdgeInsets.all(25.5),
- child: Container(
- padding: EdgeInsets.all(15.0),
- child: Column(
- children: <Widget>[
- Image.asset("assets/pille.jpg"),
- Text("\n\n" + pilletxt)
- ],
- )
- ),
- ),
- ]
- )
- )
- );
- }
- }
- String ninetyninehits = "This meme describes the feelings you get\nwhen you nearly kill an opponent in a shooting videogame like CS:GO.\nA feeling many gamers born in the early 2000s have felt and so many people\ncan relate therefor this memes is very successful.";
- String pilletxt = "This meme is reffering to the feeling of joy\na mentally sick person might get when\ndrugging another person at a party.";
- class AddCard {
- String imgpng, 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