Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. import "package:flutter/material.dart";
  2.  
  3. void main() => runApp(MyApp());
  4.  
  5. class MyApp extends StatelessWidget {
  6. @override
  7. Widget build(BuildContext context) {
  8. return MaterialApp(
  9. home: Scaffold(
  10. appBar: AppBar(
  11. centerTitle: true,
  12. title: Text("Albinator"),
  13. ),
  14. body:
  15. ListView(
  16. children: [
  17. Card(
  18. elevation: 10,
  19. margin: EdgeInsets.all(25.0),
  20. child: Container(
  21. padding: EdgeInsets.all(15.0),
  22. child: Column(
  23. children: <Widget>[
  24. Image.asset("assets/99hits.png"),
  25. Text("\n\n" + ninetyninehits)
  26. ],
  27. )
  28. ),
  29. ),
  30.  
  31. Card(
  32. elevation: 10,
  33. margin: EdgeInsets.all(25.5),
  34. child: Container(
  35. padding: EdgeInsets.all(15.0),
  36. child: Column(
  37. children: <Widget>[
  38. Image.asset("assets/pille.jpg"),
  39. Text("\n\n" + pilletxt)
  40. ],
  41. )
  42. ),
  43. ),
  44.  
  45. ]
  46. )
  47. )
  48. );
  49. }
  50. }
  51.  
  52.  
  53. 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.";
  54. String pilletxt = "This meme is reffering to the feeling of joy\na mentally sick person might get when\ndrugging another person at a party.";
  55.  
  56. class AddCard {
  57. String imgpng, imgtxt;
  58. Widget build(BuildContext context) {
  59. return Card(
  60. elevation: 10,
  61. margin: EdgeInsets.all(25.0),
  62. child: Container(
  63. padding: EdgeInsets.all(15.0),
  64. child: Column(
  65. children: <Widget>[
  66. Image.asset(imgpng),
  67. Text("\n\n" + imgtxt)
  68. ],
  69. )
  70. ),
  71. );
  72. }
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement