1
1
import 'package:flutter/material.dart' ;
2
- import 'package:givison/src/constants/image_strings.dart' ;
3
2
import 'package:givison/src/constants/size.dart' ;
4
3
import 'package:givison/src/constants/text_strings.dart' ;
4
+ import 'package:lottie/lottie.dart' ;
5
5
6
6
class EmailScreen extends StatelessWidget {
7
7
const EmailScreen ({Key ? key}) : super (key: key);
@@ -10,23 +10,31 @@ class EmailScreen extends StatelessWidget {
10
10
Widget build (BuildContext context) {
11
11
var height = MediaQuery .of (context).size.height;
12
12
return Scaffold (
13
- backgroundColor: const Color .fromRGBO (249 , 238 , 238 , 1 ),
14
13
body: Container (
15
14
padding: const EdgeInsets .all (tDefaultSize),
16
15
child: Column (
17
16
mainAxisAlignment: MainAxisAlignment .spaceEvenly,
18
17
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
+ ),
20
24
Column (
21
25
children: [
22
26
Text (
23
27
tpw,
24
- style: Theme .of (context).textTheme.displayMedium,
28
+ style: TextStyle (
29
+ color: Colors .black,
30
+ fontSize: 28.0 ,),// Match text style
25
31
textAlign: TextAlign .center,
26
32
),
27
33
Text (
28
34
tpws,
29
- style: Theme .of (context).textTheme.titleSmall,
35
+ style: TextStyle (
36
+ color: Colors .black54,
37
+ fontSize: 20.0 ,), // Match text style
30
38
textAlign: TextAlign .center,
31
39
),
32
40
],
0 commit comments