Skip to content

Commit 9f7ba83

Browse files
committed
Revamped the Email Page
1 parent 535cb46 commit 9f7ba83

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

givison/lib/src/constants/size.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
const tDefaultSize=30.0;
2-
const tSplashContainerSize=30.0;
32
const tButtonHeight = 15.0;
43
const tFormHeight=30.0;
5-
6-
const tDashboardPadding = 20.0;
7-
const tDashboardCardPadding = 20.0;
4+
const tDashboardPadding = 20.0;

givison/lib/src/features/authentication/screens/dashboard/email.dart

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'package:flutter/material.dart';
2-
import 'package:givison/src/constants/image_strings.dart';
32
import 'package:givison/src/constants/size.dart';
43
import 'package:givison/src/constants/text_strings.dart';
4+
import 'package:lottie/lottie.dart';
55

66
class 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

Comments
 (0)