Advertisement
sourav8256

Untitled

Sep 12th, 2023
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1.  
  2. class SimpleTextCard2 extends StatelessWidget {
  3. @override
  4. Widget build(BuildContext context) {
  5. return Container(
  6. height: 200,
  7. color: Color.fromARGB(255, 0, 115, 255),
  8. padding: EdgeInsets.all(0.0),
  9. child: Stack(
  10. children: [
  11. // Bottom Layer
  12. Positioned(
  13. left: 0.0,
  14. right: 0,
  15. top: 16.0,
  16. child: Center(
  17. child: Text(
  18. 'Why choose us?',
  19. style: TextStyle(
  20. fontSize: 18.0,
  21. color: Colors.white
  22. ),
  23. ),
  24. ),
  25. ),
  26. Positioned(
  27. left: 0.0,
  28. right: 0,
  29. top: 46.0,
  30. child: Center(
  31. child: Text(
  32. 'Get Justice',
  33. style: TextStyle(
  34. fontSize: 28.0,
  35. color: Colors.white,
  36. fontWeight: FontWeight.bold
  37. ),
  38. ),
  39. ),
  40. ),
  41. // Positioned(
  42. // left: 0.0,
  43. // right: 0,
  44. // top: 86.0,
  45. // child: Center(
  46. // child: Text(
  47. // 'Delivered! From Your Finger Tips',
  48. // style: TextStyle(
  49. // fontSize: 18.0,
  50. // color: Colors.white
  51. // ),
  52. // ),
  53. // ),
  54. // ),
  55. Positioned(
  56. left: 0.0,
  57. right: 0,
  58. top: 86.0,
  59. child: Center(
  60. child: TypingAnimation(
  61. text: 'Delivered! From Your Finger Tips',
  62. // style: TextStyle(
  63. // fontSize: 18.0,
  64. // color: Colors.white
  65. // ),
  66. ),
  67. ),
  68. ),
  69. Positioned(
  70. left: 0.0,
  71. right: 0,
  72. top: 126.0,
  73. child: Center(
  74. child: ElevatedButton(
  75.  
  76. onPressed: () { },
  77. style: ButtonStyle(
  78. backgroundColor: MaterialStateProperty.all<Color>(AppColors.secondaryColor), // Change to your desired color
  79. ),
  80. child: Text("Get Started")
  81. ),
  82. ),
  83. ),
  84. // Middle Layer
  85. // Positioned(
  86. // left: 32.0,
  87. // top: 16.0,
  88. // child: Text(
  89. // 'Middle Layer Text',
  90. // style: TextStyle(
  91. // fontSize: 18.0,
  92. // color: Colors.blue,
  93. // ),
  94. // ),
  95. // ),
  96. // Top Layer
  97.  
  98. ],
  99. ),
  100. );
  101. }
  102.  
  103. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement