Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7bc1628

Browse files
Add payment success page
1 parent 5599c53 commit 7bc1628

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

‎lib/pages/payment_success.dart

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import 'package:day34/animation/FadeAnimation.dart';
2+
import 'package:day34/main.dart';
3+
import 'package:flutter/material.dart';
4+
5+
class PaymentSuccess extends StatefulWidget {
6+
const PaymentSuccess({ Key? key }) : super(key: key);
7+
8+
@override
9+
_PaymentSuccessState createState() => _PaymentSuccessState();
10+
}
11+
12+
class _PaymentSuccessState extends State<PaymentSuccess> {
13+
@override
14+
Widget build(BuildContext context) {
15+
return Scaffold(
16+
backgroundColor: Colors.white,
17+
body: Container(
18+
padding: EdgeInsets.all(40.0),
19+
width: double.infinity,
20+
child: Column(
21+
crossAxisAlignment: CrossAxisAlignment.center,
22+
mainAxisAlignment: MainAxisAlignment.center,
23+
children: [
24+
FadeAnimation(1, Image.network('https://ouch-cdn2.icons8.com/7fkWk5J2YcodnqGn62xOYYfkl6qhmsCfT2033W-FjaA/rs:fit:784:784/czM6Ly9pY29uczgu/b3VjaC1wcm9kLmFz/c2V0cy9zdmcvMjU5/LzRkM2MyNzJlLWFh/MmQtNDA3Ni04YzU0/LTY0YjNiMzQ4NzQw/OS5zdmc.png',
25+
width: 250,)),
26+
SizedBox(height: 50.0,),
27+
FadeAnimation(1.2, Text('Payment Success! 🥳', style: TextStyle(fontSize: 25.0, fontWeight: FontWeight.bold),)),
28+
SizedBox(height: 20.0,),
29+
FadeAnimation(1.3, Text('Hooray! Your payment proccess has \n been completed successfully..', textAlign: TextAlign.center, style: TextStyle(fontSize: 16.0, color: Colors.grey.shade700),)),
30+
SizedBox(height: 140.0,),
31+
FadeAnimation(1.4,
32+
MaterialButton(
33+
onPressed: () {
34+
Navigator.push(context, MaterialPageRoute(builder: (context) => HomePage()));
35+
},
36+
height: 50,
37+
elevation: 0,
38+
splashColor: Colors.yellow[700],
39+
shape: RoundedRectangleBorder(
40+
borderRadius: BorderRadius.circular(10)
41+
),
42+
color: Colors.yellow[800],
43+
child: Center(
44+
child: Text("Back to Home", style: TextStyle(color: Colors.white, fontSize: 16),),
45+
),
46+
),
47+
),
48+
SizedBox(height: 20.0,),
49+
FadeAnimation(1.4, Text('Thank you for shopping with us.', style: TextStyle(fontSize: 14.0, color: Colors.grey),)),
50+
],
51+
),
52+
)
53+
);
54+
}
55+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /