Skip to content

Commit da8c31e

Browse files
committed
checkout page
1 parent 67b3c5f commit da8c31e

File tree

4 files changed

+206
-1
lines changed

4 files changed

+206
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ The code for Springy Widget is taken and refactored from (https://github.com/mat
138138

139139
## Ecommerce
140140

141-
<img height="480px" src="screenshots/ecommerce_details3.png"> <img height="480px" src="screenshots/home_page1.png"> <img height="480px" src="screenshots/confirm_order1.png"> <img height="480px" src="screenshots/cart1.png"> <img height="480px" src="screenshots/ecommerce1.png"> <img height="480px" src="screenshots/ecommerce2.png"> <img height="480px" src="screenshots/ecommerce_detail1.png"> <img height="480px" src="screenshots/ecommerce_detail2.png">
141+
<img height="480px" src="screenshots/checkout1.png"> <img height="480px" src="screenshots/ecommerce_details3.png"> <img height="480px" src="screenshots/home_page1.png"> <img height="480px" src="screenshots/confirm_order1.png"> <img height="480px" src="screenshots/cart1.png"> <img height="480px" src="screenshots/ecommerce1.png"> <img height="480px" src="screenshots/ecommerce2.png"> <img height="480px" src="screenshots/ecommerce_detail1.png"> <img height="480px" src="screenshots/ecommerce_detail2.png">
142142

143143
## User Flow Screens
144144

lib/core/presentation/routes.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import 'package:flutter_ui_challenges/src/pages/animations/anim5.dart';
66
import 'package:flutter_ui_challenges/src/pages/bike/bike_details.dart';
77
import 'package:flutter_ui_challenges/src/pages/bike/home_page.dart';
88
import 'package:flutter_ui_challenges/src/pages/blog/sports_news1.dart';
9+
import 'package:flutter_ui_challenges/src/pages/ecommerce/checkout1.dart';
910
import 'package:flutter_ui_challenges/src/pages/invitation/inauth.dart';
1011
import 'package:flutter_ui_challenges/src/pages/invitation/inlanding.dart';
1112
import 'package:flutter_ui_challenges/src/pages/invitation/invitation1.dart';
@@ -159,6 +160,8 @@ final List<dynamic> pages = [
159160
SubMenuItem("Details Page", InvitationPageOne(), path: InvitationPageOne.path),
160161
]),
161162
MenuItem(title: "Ecommerce", icon: Icons.shopping_basket, items: [
163+
SubMenuItem("Checkout One", CheckoutOnePage(),
164+
path: CheckoutOnePage.path),
162165
SubMenuItem("Ecommerce One", EcommerceOnePage(),
163166
path: EcommerceOnePage.path),
164167
SubMenuItem("Ecommerce Two", EcommerceTwoPage(),
Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
/**
2+
* Author: Damodar Lohani
3+
* profile: https://github.com/lohanidamodar
4+
*/
5+
6+
import 'package:flutter/material.dart';
7+
import 'package:flutter_ui_challenges/core/presentation/widgets/rounded_bordered_container.dart';
8+
import 'package:flutter_ui_challenges/src/pages/invitation/inauth.dart';
9+
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
10+
11+
class CheckoutOnePage extends StatelessWidget {
12+
static final String path = "lib/src/pages/ecommerce/cart1.dart";
13+
@override
14+
Widget build(BuildContext context) {
15+
return Scaffold(
16+
backgroundColor: Colors.white,
17+
appBar: AppBar(
18+
backgroundColor: Colors.transparent,
19+
elevation: 0,
20+
iconTheme: IconThemeData(
21+
color: Colors.black,
22+
),
23+
),
24+
body: SingleChildScrollView(
25+
child: Column(
26+
children: <Widget>[
27+
Text(
28+
"Choose your plan",
29+
style: TextStyle(
30+
fontWeight: FontWeight.bold,
31+
fontSize: 24.0,
32+
),
33+
),
34+
const SizedBox(height: 20.0),
35+
Row(
36+
children: <Widget>[
37+
Expanded(
38+
child: RoundedContainer(
39+
margin: const EdgeInsets.symmetric(
40+
vertical: 8.0,
41+
horizontal: 8.0,
42+
),
43+
child: Column(
44+
children: <Widget>[
45+
Text(
46+
"Free",
47+
style: boldText,
48+
),
49+
const SizedBox(height: 5.0),
50+
Text(
51+
"7 days",
52+
style: TextStyle(
53+
color: Colors.grey,
54+
fontSize: 12.0,
55+
),
56+
)
57+
],
58+
),
59+
),
60+
),
61+
Expanded(
62+
child: RoundedContainer(
63+
margin: const EdgeInsets.symmetric(
64+
vertical: 8.0,
65+
horizontal: 8.0,
66+
),
67+
child: Column(
68+
children: <Widget>[
69+
Text(
70+
"\$450",
71+
style: boldText,
72+
),
73+
const SizedBox(height: 5.0),
74+
Text(
75+
"Per week",
76+
style: TextStyle(
77+
color: Colors.grey,
78+
fontSize: 12.0,
79+
),
80+
)
81+
],
82+
),
83+
),
84+
),
85+
],
86+
),
87+
Row(
88+
children: <Widget>[
89+
Expanded(
90+
child: RoundedContainer(
91+
color: Colors.indigo,
92+
margin: const EdgeInsets.symmetric(
93+
vertical: 8.0,
94+
horizontal: 8.0,
95+
),
96+
child: Column(
97+
children: <Widget>[
98+
Text(
99+
"\$900",
100+
style: boldText.copyWith(
101+
color: Colors.white,
102+
),
103+
),
104+
const SizedBox(height: 5.0),
105+
Text(
106+
"Per month",
107+
style: TextStyle(
108+
color: Colors.white60,
109+
fontSize: 12.0,
110+
),
111+
)
112+
],
113+
),
114+
),
115+
),
116+
Expanded(
117+
child: RoundedContainer(
118+
margin: const EdgeInsets.symmetric(
119+
vertical: 8.0,
120+
horizontal: 8.0,
121+
),
122+
child: Column(
123+
children: <Widget>[
124+
Text(
125+
"\$2000",
126+
style: boldText,
127+
),
128+
const SizedBox(height: 5.0),
129+
Text(
130+
"Lifetime",
131+
style: TextStyle(
132+
color: Colors.grey,
133+
fontSize: 12.0,
134+
),
135+
),
136+
],
137+
),
138+
),
139+
),
140+
],
141+
),
142+
const SizedBox(height: 30.0),
143+
RoundedContainer(
144+
margin: const EdgeInsets.all(8.0),
145+
padding: const EdgeInsets.all(8.0),
146+
child: ListTile(
147+
leading: Icon(
148+
FontAwesomeIcons.paypal,
149+
color: Colors.indigo,
150+
),
151+
title: Text("Paypal"),
152+
trailing: Icon(Icons.arrow_forward_ios),
153+
),
154+
),
155+
RoundedContainer(
156+
margin: const EdgeInsets.all(8.0),
157+
padding: const EdgeInsets.all(8.0),
158+
child: ListTile(
159+
leading: Icon(
160+
FontAwesomeIcons.googleWallet,
161+
color: Colors.indigo,
162+
),
163+
title: Text("Google Pay"),
164+
trailing: Icon(Icons.arrow_forward_ios),
165+
),
166+
),
167+
RoundedContainer(
168+
margin: const EdgeInsets.all(8.0),
169+
padding: const EdgeInsets.all(8.0),
170+
child: ListTile(
171+
leading: Icon(
172+
FontAwesomeIcons.applePay,
173+
color: Colors.indigo,
174+
),
175+
title: Text("Apple Pay"),
176+
trailing: Icon(Icons.arrow_forward_ios),
177+
),
178+
),
179+
const SizedBox(height: 20.0),
180+
Container(
181+
width: double.infinity,
182+
padding: const EdgeInsets.symmetric(
183+
vertical: 16.0,
184+
horizontal: 32.0,
185+
),
186+
child: RaisedButton(
187+
elevation: 0,
188+
padding: const EdgeInsets.all(24.0),
189+
shape: RoundedRectangleBorder(
190+
borderRadius: BorderRadius.circular(10.0)),
191+
child: Text("Continue"),
192+
color: Colors.indigo,
193+
textColor: Colors.white,
194+
onPressed: () {},
195+
),
196+
)
197+
],
198+
),
199+
),
200+
);
201+
}
202+
}

screenshots/checkout1.png

95 KB
Loading

0 commit comments

Comments
 (0)