11import 'package:flutter/material.dart' ;
2- import 'package:givison/src/constants/image_strings.dart' ;
32import 'package:givison/src/constants/size.dart' ;
43import 'package:givison/src/constants/text_strings.dart' ;
4+ import 'package:lottie/lottie.dart' ;
55
66class EmailScreen extends StatelessWidget {
77 const EmailScreen ({Key ? key}) : super (key: key);
@@ -10,23 +10,31 @@ class EmailScreen extends StatelessWidget {
1010 Widget build (BuildContext context) {
1111 var height = MediaQuery .of (context).size.height;
1212 return Scaffold (
13- backgroundColor: const Color .fromRGBO (249 , 238 , 238 , 1 ),
1413 body: Container (
1514 padding: const EdgeInsets .all (tDefaultSize),
1615 child: Column (
1716 mainAxisAlignment: MainAxisAlignment .spaceEvenly,
1817 children: [
19- Image (image: const AssetImage (tveri), height: height * 0.6 ),
18+ // Replace the Image widget with Lottie.asset
19+ Lottie .asset (
20+ 'assets/images/emailsent.json' , // Adjust path if needed
21+ height: height * 0.6 ,
22+ repeat: false ,
23+ ),
2024 Column (
2125 children: [
2226 Text (
2327 tpw,
24- style: Theme .of (context).textTheme.displayMedium,
28+ style: TextStyle (
29+ color: Colors .black,
30+ fontSize: 28.0 ,),// Match text style
2531 textAlign: TextAlign .center,
2632 ),
2733 Text (
2834 tpws,
29- style: Theme .of (context).textTheme.titleSmall,
35+ style: TextStyle (
36+ color: Colors .black54,
37+ fontSize: 20.0 ,), // Match text style
3038 textAlign: TextAlign .center,
3139 ),
3240 ],
0 commit comments