Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SimpleTextCard2 extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Container(
- height: 200,
- color: Color.fromARGB(255, 0, 115, 255),
- padding: EdgeInsets.all(0.0),
- child: Stack(
- children: [
- // Bottom Layer
- Positioned(
- left: 0.0,
- right: 0,
- top: 16.0,
- child: Center(
- child: Text(
- 'Why choose us?',
- style: TextStyle(
- fontSize: 18.0,
- color: Colors.white
- ),
- ),
- ),
- ),
- Positioned(
- left: 0.0,
- right: 0,
- top: 46.0,
- child: Center(
- child: Text(
- 'Get Justice',
- style: TextStyle(
- fontSize: 28.0,
- color: Colors.white,
- fontWeight: FontWeight.bold
- ),
- ),
- ),
- ),
- // Positioned(
- // left: 0.0,
- // right: 0,
- // top: 86.0,
- // child: Center(
- // child: Text(
- // 'Delivered! From Your Finger Tips',
- // style: TextStyle(
- // fontSize: 18.0,
- // color: Colors.white
- // ),
- // ),
- // ),
- // ),
- Positioned(
- left: 0.0,
- right: 0,
- top: 86.0,
- child: Center(
- child: TypingAnimation(
- text: 'Delivered! From Your Finger Tips',
- // style: TextStyle(
- // fontSize: 18.0,
- // color: Colors.white
- // ),
- ),
- ),
- ),
- Positioned(
- left: 0.0,
- right: 0,
- top: 126.0,
- child: Center(
- child: ElevatedButton(
- onPressed: () { },
- style: ButtonStyle(
- backgroundColor: MaterialStateProperty.all<Color>(AppColors.secondaryColor), // Change to your desired color
- ),
- child: Text("Get Started")
- ),
- ),
- ),
- // Middle Layer
- // Positioned(
- // left: 32.0,
- // top: 16.0,
- // child: Text(
- // 'Middle Layer Text',
- // style: TextStyle(
- // fontSize: 18.0,
- // color: Colors.blue,
- // ),
- // ),
- // ),
- // Top Layer
- ],
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement