Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
feelver
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2F-ART
feelver
Commits
a70a6bcf
Commit
a70a6bcf
authored
Jul 03, 2020
by
Mobile : Ball (Apprentice)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
328872f2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
390 additions
and
291 deletions
+390
-291
lib/ui/favorite/favorite.dart
+133
-113
lib/ui/payment/payment_detail.dart
+134
-83
lib/ui/payment/payment_page.dart
+123
-95
No files found.
lib/ui/favorite/favorite.dart
View file @
a70a6bcf
...
@@ -65,82 +65,14 @@ class _FavoriteState extends State<Favorite> {
...
@@ -65,82 +65,14 @@ class _FavoriteState extends State<Favorite> {
_setupView
()
{
_setupView
()
{
return
Column
(
return
Column
(
children:
<
Widget
>[
children:
<
Widget
>[
Stack
(
header
(),
children:
<
Widget
>[
containt
(),
Container
(
color:
Color
.
fromRGBO
(
69
,
85
,
79
,
1
),
height:
SizeConfig
.
getHeight
(
200
),
width:
MediaQuery
.
of
(
context
).
size
.
width
,
),
Positioned
(
top:
SizeConfig
.
getPadding
(
50
),
left:
SizeConfig
.
getPadding
(
MediaQuery
.
of
(
context
).
size
.
width
/
3.5
),
child:
Container
(
alignment:
Alignment
.
topCenter
,
child:
Image
.
asset
(
'assets/images/feelver_banner.png'
,
width:
MediaQuery
.
of
(
context
).
size
.
width
/
2.5
,
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
left:
SizeConfig
.
getPadding
(
16
),
child:
Container
(
child:
GestureDetector
(
onTap:
()
{
showDialog
(
context:
context
,
builder:
(
BuildContext
context
)
{
return
NavDrawer
();
},
);
},
child:
Image
.
asset
(
'assets/images/ic_menu.png'
,
height:
SizeConfig
.
getWidth
(
24
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
right:
SizeConfig
.
getPadding
(
60
),
child:
Container
(
child:
Image
.
asset
(
'assets/images/ic_noti.png'
,
height:
SizeConfig
.
getWidth
(
30
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
right:
SizeConfig
.
getPadding
(
20
),
child:
InkWell
(
// onTap: () {
// Navigator.push(
// context,
// MaterialPageRoute(builder: (context) => LoginPage()),
// );
// },
child:
Container
(
child:
Image
.
asset
(
'assets/images/ic_userimg.png'
,
height:
SizeConfig
.
getWidth
(
30
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
),
],
],
),
);
Expanded
(
}
Widget
containt
()
{
return
Expanded
(
child:
SingleChildScrollView
(
child:
SingleChildScrollView
(
child:
Padding
(
child:
Padding
(
padding:
const
EdgeInsets
.
only
(
padding:
const
EdgeInsets
.
only
(
...
@@ -154,8 +86,21 @@ class _FavoriteState extends State<Favorite> {
...
@@ -154,8 +86,21 @@ class _FavoriteState extends State<Favorite> {
child:
Column
(
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
children:
<
Widget
>[
Container
(
list1
(),
child:
Row
(
list2
(),
],
),
),
),
),
);
}
Widget
list1
()
{
return
Container
(
child:
Column
(
children:
<
Widget
>[
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
Image
.
asset
(
Image
.
asset
(
'assets/images/no-image.png'
,
'assets/images/no-image.png'
,
...
@@ -221,15 +166,17 @@ class _FavoriteState extends State<Favorite> {
...
@@ -221,15 +166,17 @@ class _FavoriteState extends State<Favorite> {
),
),
),
),
SizedBox
(
SizedBox
(
width:
SizeConfig
.
getWidth
(
110
),
width:
SizeConfig
.
getWidth
(
95
),
),
Icon
(
Icons
.
local_offer
,
color:
Color
(
0xFFEEAFB7
),
),
),
Text
(
Text
(
'฿1,599.00'
,
'฿1,599.00'
,
style:
TextStyle
(
style:
TextStyle
(
decoration:
decoration:
TextDecoration
.
lineThrough
,
TextDecoration
.
lineThrough
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontFamily:
"SF_Pro_Text"
,
color:
Color
(
0xFFEEAFB7
),
color:
Color
(
0xFFEEAFB7
),
),
),
...
@@ -245,18 +192,15 @@ class _FavoriteState extends State<Favorite> {
...
@@ -245,18 +192,15 @@ class _FavoriteState extends State<Favorite> {
children:
<
Widget
>[
children:
<
Widget
>[
Container
(
Container
(
child:
Padding
(
child:
Padding
(
padding:
padding:
const
EdgeInsets
.
only
(
left:
10
),
const
EdgeInsets
.
only
(
left:
10
),
child:
Row
(
child:
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
SizedBox
(
SizedBox
(
width:
SizeConfig
.
getPadding
(
20
),
width:
SizeConfig
.
getPadding
(
20
),
height:
height:
SizeConfig
.
getPadding
(
20
),
SizeConfig
.
getPadding
(
20
),
child:
RaisedButton
(
child:
RaisedButton
(
child:
Text
(
'-'
),
child:
Text
(
'-'
),
padding:
padding:
EdgeInsets
.
only
(
right:
0
),
EdgeInsets
.
only
(
right:
0
),
onPressed:
()
{
onPressed:
()
{
setState
(()
{
setState
(()
{
a
=
a
-
1
;
a
=
a
-
1
;
...
@@ -270,20 +214,16 @@ class _FavoriteState extends State<Favorite> {
...
@@ -270,20 +214,16 @@ class _FavoriteState extends State<Favorite> {
child:
Text
(
child:
Text
(
'
$a
'
,
'
$a
'
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
fontSize:
SizeConfig
.
getFontSize
(
12
),
SizeConfig
.
getFontSize
(
12
),
),
),
),
),
),
),
SizedBox
(
SizedBox
(
width:
SizeConfig
.
getPadding
(
20
),
width:
SizeConfig
.
getPadding
(
20
),
height:
height:
SizeConfig
.
getPadding
(
20
),
SizeConfig
.
getPadding
(
20
),
child:
RaisedButton
(
child:
RaisedButton
(
child:
Text
(
'+'
),
child:
Text
(
'+'
),
padding:
padding:
EdgeInsets
.
only
(
right:
0
),
EdgeInsets
.
only
(
right:
0
),
onPressed:
()
{
onPressed:
()
{
setState
(()
{
setState
(()
{
a
=
a
+
1
;
a
=
a
+
1
;
...
@@ -315,15 +255,22 @@ class _FavoriteState extends State<Favorite> {
...
@@ -315,15 +255,22 @@ class _FavoriteState extends State<Favorite> {
),
),
],
],
),
),
),
Divider
(
Divider
(
color:
Colors
.
black
,
color:
Colors
.
black
,
height:
2
0
,
height:
4
0
,
indent:
8
,
indent:
8
,
endIndent:
20
,
endIndent:
20
,
),
),
Container
(
],
child:
Row
(
),
);
}
Widget
list2
()
{
return
Container
(
child:
Column
(
children:
<
Widget
>[
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
Image
.
asset
(
Image
.
asset
(
'assets/images/no-image.png'
,
'assets/images/no-image.png'
,
...
@@ -339,7 +286,7 @@ class _FavoriteState extends State<Favorite> {
...
@@ -339,7 +286,7 @@ class _FavoriteState extends State<Favorite> {
Row
(
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
Text
(
Text
(
'Ivory Relax and Spa
'
,
'Sunshine Spa & Massage
'
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontFamily:
"SF_Pro_Text"
,
...
@@ -348,7 +295,7 @@ class _FavoriteState extends State<Favorite> {
...
@@ -348,7 +295,7 @@ class _FavoriteState extends State<Favorite> {
),
),
),
),
SizedBox
(
SizedBox
(
width:
SizeConfig
.
getWidth
(
6
0
),
width:
SizeConfig
.
getWidth
(
2
0
),
),
),
Checkbox
(
Checkbox
(
checkColor:
Color
(
0xFFEEAFB7
),
checkColor:
Color
(
0xFFEEAFB7
),
...
@@ -389,15 +336,17 @@ class _FavoriteState extends State<Favorite> {
...
@@ -389,15 +336,17 @@ class _FavoriteState extends State<Favorite> {
),
),
),
),
SizedBox
(
SizedBox
(
width:
SizeConfig
.
getWidth
(
110
),
width:
SizeConfig
.
getWidth
(
95
),
),
Icon
(
Icons
.
local_offer
,
color:
Color
(
0xFFEEAFB7
),
),
),
Text
(
Text
(
'฿1,599.00'
,
'฿1,599.00'
,
style:
TextStyle
(
style:
TextStyle
(
decoration:
decoration:
TextDecoration
.
lineThrough
,
TextDecoration
.
lineThrough
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontFamily:
"SF_Pro_Text"
,
color:
Color
(
0xFFEEAFB7
),
color:
Color
(
0xFFEEAFB7
),
),
),
...
@@ -413,8 +362,7 @@ class _FavoriteState extends State<Favorite> {
...
@@ -413,8 +362,7 @@ class _FavoriteState extends State<Favorite> {
children:
<
Widget
>[
children:
<
Widget
>[
Container
(
Container
(
child:
Padding
(
child:
Padding
(
padding:
padding:
const
EdgeInsets
.
only
(
left:
10
),
const
EdgeInsets
.
only
(
left:
10
),
child:
Row
(
child:
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
SizedBox
(
SizedBox
(
...
@@ -422,8 +370,7 @@ class _FavoriteState extends State<Favorite> {
...
@@ -422,8 +370,7 @@ class _FavoriteState extends State<Favorite> {
height:
SizeConfig
.
getPadding
(
20
),
height:
SizeConfig
.
getPadding
(
20
),
child:
RaisedButton
(
child:
RaisedButton
(
child:
Text
(
'-'
),
child:
Text
(
'-'
),
padding:
padding:
EdgeInsets
.
only
(
right:
0
),
EdgeInsets
.
only
(
right:
0
),
onPressed:
()
{
onPressed:
()
{
setState
(()
{
setState
(()
{
b
=
b
-
1
;
b
=
b
-
1
;
...
@@ -441,8 +388,7 @@ class _FavoriteState extends State<Favorite> {
...
@@ -441,8 +388,7 @@ class _FavoriteState extends State<Favorite> {
height:
SizeConfig
.
getPadding
(
20
),
height:
SizeConfig
.
getPadding
(
20
),
child:
RaisedButton
(
child:
RaisedButton
(
child:
Text
(
'+'
),
child:
Text
(
'+'
),
padding:
padding:
EdgeInsets
.
only
(
right:
0
),
EdgeInsets
.
only
(
right:
0
),
onPressed:
()
{
onPressed:
()
{
setState
(()
{
setState
(()
{
b
=
b
+
1
;
b
=
b
+
1
;
...
@@ -474,7 +420,6 @@ class _FavoriteState extends State<Favorite> {
...
@@ -474,7 +420,6 @@ class _FavoriteState extends State<Favorite> {
),
),
],
],
),
),
),
Divider
(
Divider
(
color:
Colors
.
black
,
color:
Colors
.
black
,
height:
40
,
height:
40
,
...
@@ -483,11 +428,86 @@ class _FavoriteState extends State<Favorite> {
...
@@ -483,11 +428,86 @@ class _FavoriteState extends State<Favorite> {
),
),
],
],
),
),
);
}
Widget
header
()
{
return
Container
(
child:
Stack
(
children:
<
Widget
>[
Container
(
color:
Color
.
fromRGBO
(
69
,
85
,
79
,
1
),
height:
SizeConfig
.
getHeight
(
200
),
width:
MediaQuery
.
of
(
context
).
size
.
width
,
),
Positioned
(
top:
SizeConfig
.
getPadding
(
50
),
left:
SizeConfig
.
getPadding
(
MediaQuery
.
of
(
context
).
size
.
width
/
3.5
),
child:
Container
(
alignment:
Alignment
.
topCenter
,
child:
Image
.
asset
(
'assets/images/feelver_banner.png'
,
width:
MediaQuery
.
of
(
context
).
size
.
width
/
2.5
,
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
left:
SizeConfig
.
getPadding
(
16
),
child:
Container
(
child:
GestureDetector
(
onTap:
()
{
showDialog
(
context:
context
,
builder:
(
BuildContext
context
)
{
return
NavDrawer
();
},
);
},
child:
Image
.
asset
(
'assets/images/ic_menu.png'
,
height:
SizeConfig
.
getWidth
(
24
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
right:
SizeConfig
.
getPadding
(
60
),
child:
Container
(
child:
Image
.
asset
(
'assets/images/ic_noti.png'
,
height:
SizeConfig
.
getWidth
(
30
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
right:
SizeConfig
.
getPadding
(
20
),
child:
InkWell
(
// onTap: () {
// Navigator.push(
// context,
// MaterialPageRoute(builder: (context) => LoginPage()),
// );
// },
child:
Container
(
child:
Image
.
asset
(
'assets/images/ic_userimg.png'
,
height:
SizeConfig
.
getWidth
(
30
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
),
),
),
),
),
],
],
),
);
);
}
}
}
}
lib/ui/payment/payment_detail.dart
View file @
a70a6bcf
...
@@ -19,82 +19,14 @@ class _PaymentdetailState extends State<Paymentdetail> {
...
@@ -19,82 +19,14 @@ class _PaymentdetailState extends State<Paymentdetail> {
_setupView
()
{
_setupView
()
{
return
Column
(
return
Column
(
children:
<
Widget
>[
children:
<
Widget
>[
Stack
(
header
(),
children:
<
Widget
>[
containt
(),
Container
(
color:
Color
.
fromRGBO
(
69
,
85
,
79
,
1
),
height:
SizeConfig
.
getHeight
(
200
),
width:
MediaQuery
.
of
(
context
).
size
.
width
,
),
Positioned
(
top:
SizeConfig
.
getPadding
(
50
),
left:
SizeConfig
.
getPadding
(
MediaQuery
.
of
(
context
).
size
.
width
/
3.5
),
child:
Container
(
alignment:
Alignment
.
topCenter
,
child:
Image
.
asset
(
'assets/images/feelver_banner.png'
,
width:
MediaQuery
.
of
(
context
).
size
.
width
/
2.5
,
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
left:
SizeConfig
.
getPadding
(
16
),
child:
Container
(
child:
GestureDetector
(
onTap:
()
{
showDialog
(
context:
context
,
builder:
(
BuildContext
context
)
{
return
NavDrawer
();
},
);
},
child:
Image
.
asset
(
'assets/images/ic_menu.png'
,
height:
SizeConfig
.
getWidth
(
24
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
right:
SizeConfig
.
getPadding
(
60
),
child:
Container
(
child:
Image
.
asset
(
'assets/images/ic_noti.png'
,
height:
SizeConfig
.
getWidth
(
30
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
right:
SizeConfig
.
getPadding
(
20
),
child:
InkWell
(
// onTap: () {
// Navigator.push(
// context,
// MaterialPageRoute(builder: (context) => LoginPage()),
// );
// },
child:
Container
(
child:
Image
.
asset
(
'assets/images/ic_userimg.png'
,
height:
SizeConfig
.
getWidth
(
30
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
),
],
],
),
);
Expanded
(
}
Widget
containt
()
{
return
Expanded
(
child:
SingleChildScrollView
(
child:
SingleChildScrollView
(
child:
Padding
(
child:
Padding
(
padding:
const
EdgeInsets
.
only
(
padding:
const
EdgeInsets
.
only
(
...
@@ -126,6 +58,20 @@ class _PaymentdetailState extends State<Paymentdetail> {
...
@@ -126,6 +58,20 @@ class _PaymentdetailState extends State<Paymentdetail> {
indent:
10
,
indent:
10
,
endIndent:
20
,
endIndent:
20
,
),
),
list1
(),
list2
(),
],
),
),
),
),
);
}
Widget
list1
()
{
return
Container
(
child:
Column
(
children:
<
Widget
>[
Row
(
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
Text
(
Text
(
...
@@ -151,8 +97,7 @@ class _PaymentdetailState extends State<Paymentdetail> {
...
@@ -151,8 +97,7 @@ class _PaymentdetailState extends State<Paymentdetail> {
SizedBox
(
SizedBox
(
height:
SizeConfig
.
getHeight
(
15
),
height:
SizeConfig
.
getHeight
(
15
),
),
),
Container
(
Row
(
child:
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
Image
.
asset
(
Image
.
asset
(
'assets/images/no-image.png'
,
'assets/images/no-image.png'
,
...
@@ -218,15 +163,47 @@ class _PaymentdetailState extends State<Paymentdetail> {
...
@@ -218,15 +163,47 @@ class _PaymentdetailState extends State<Paymentdetail> {
)
)
],
],
),
),
),
Divider
(
Divider
(
color:
Colors
.
black
,
color:
Colors
.
black
,
height:
40
,
height:
40
,
indent:
10
,
indent:
10
,
endIndent:
20
,
endIndent:
20
,
),
),
Container
(
],
child:
Row
(
),
);
}
Widget
list2
()
{
return
Container
(
child:
Column
(
children:
<
Widget
>[
Row
(
children:
<
Widget
>[
Text
(
'Order : 9S284-11506'
,
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontWeight:
FontWeight
.
bold
,
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
60
),
),
Text
(
'23.02.2020 08:57'
,
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
),
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
15
),
),
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
Image
.
asset
(
Image
.
asset
(
'assets/images/no-image.png'
,
'assets/images/no-image.png'
,
...
@@ -241,7 +218,7 @@ class _PaymentdetailState extends State<Paymentdetail> {
...
@@ -241,7 +218,7 @@ class _PaymentdetailState extends State<Paymentdetail> {
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
children:
<
Widget
>[
Text
(
Text
(
'Ivory Relax and Spa
'
,
'Sunshine Spa & Massage
'
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontFamily:
"SF_Pro_Text"
,
...
@@ -253,7 +230,7 @@ class _PaymentdetailState extends State<Paymentdetail> {
...
@@ -253,7 +230,7 @@ class _PaymentdetailState extends State<Paymentdetail> {
height:
SizeConfig
.
getHeight
(
12
),
height:
SizeConfig
.
getHeight
(
12
),
),
),
Text
(
Text
(
'นวดแผนไทย
'
,
'Footology
'
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontFamily:
"SF_Pro_Text"
,
...
@@ -292,7 +269,6 @@ class _PaymentdetailState extends State<Paymentdetail> {
...
@@ -292,7 +269,6 @@ class _PaymentdetailState extends State<Paymentdetail> {
)
)
],
],
),
),
),
Divider
(
Divider
(
color:
Colors
.
black
,
color:
Colors
.
black
,
height:
40
,
height:
40
,
...
@@ -301,11 +277,86 @@ class _PaymentdetailState extends State<Paymentdetail> {
...
@@ -301,11 +277,86 @@ class _PaymentdetailState extends State<Paymentdetail> {
),
),
],
],
),
),
);
}
Widget
header
()
{
return
Container
(
child:
Stack
(
children:
<
Widget
>[
Container
(
color:
Color
.
fromRGBO
(
69
,
85
,
79
,
1
),
height:
SizeConfig
.
getHeight
(
200
),
width:
MediaQuery
.
of
(
context
).
size
.
width
,
),
Positioned
(
top:
SizeConfig
.
getPadding
(
50
),
left:
SizeConfig
.
getPadding
(
MediaQuery
.
of
(
context
).
size
.
width
/
3.5
),
child:
Container
(
alignment:
Alignment
.
topCenter
,
child:
Image
.
asset
(
'assets/images/feelver_banner.png'
,
width:
MediaQuery
.
of
(
context
).
size
.
width
/
2.5
,
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
left:
SizeConfig
.
getPadding
(
16
),
child:
Container
(
child:
GestureDetector
(
onTap:
()
{
showDialog
(
context:
context
,
builder:
(
BuildContext
context
)
{
return
NavDrawer
();
},
);
},
child:
Image
.
asset
(
'assets/images/ic_menu.png'
,
height:
SizeConfig
.
getWidth
(
24
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
right:
SizeConfig
.
getPadding
(
60
),
child:
Container
(
child:
Image
.
asset
(
'assets/images/ic_noti.png'
,
height:
SizeConfig
.
getWidth
(
30
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
right:
SizeConfig
.
getPadding
(
20
),
child:
InkWell
(
// onTap: () {
// Navigator.push(
// context,
// MaterialPageRoute(builder: (context) => LoginPage()),
// );
// },
child:
Container
(
child:
Image
.
asset
(
'assets/images/ic_userimg.png'
,
height:
SizeConfig
.
getWidth
(
30
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
),
),
),
),
),
],
],
),
);
);
}
}
}
}
lib/ui/payment/payment_page.dart
View file @
a70a6bcf
...
@@ -11,8 +11,6 @@ class Payment extends StatefulWidget {
...
@@ -11,8 +11,6 @@ class Payment extends StatefulWidget {
}
}
class
_PaymentState
extends
State
<
Payment
>
{
class
_PaymentState
extends
State
<
Payment
>
{
int
a
=
1
;
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
SizeConfig
(
context
);
SizeConfig
(
context
);
...
@@ -20,7 +18,7 @@ class _PaymentState extends State<Payment> {
...
@@ -20,7 +18,7 @@ class _PaymentState extends State<Payment> {
body:
_setupView
(),
body:
_setupView
(),
bottomNavigationBar:
Container
(
bottomNavigationBar:
Container
(
color:
Color
.
fromRGBO
(
69
,
85
,
79
,
1
),
color:
Color
.
fromRGBO
(
69
,
85
,
79
,
1
),
height:
SizeConfig
.
getWidth
(
1
7
0
),
height:
SizeConfig
.
getWidth
(
1
5
0
),
child:
Column
(
child:
Column
(
children:
<
Widget
>[
children:
<
Widget
>[
Container
(
Container
(
...
@@ -141,82 +139,14 @@ class _PaymentState extends State<Payment> {
...
@@ -141,82 +139,14 @@ class _PaymentState extends State<Payment> {
_setupView
()
{
_setupView
()
{
return
Column
(
return
Column
(
children:
<
Widget
>[
children:
<
Widget
>[
Stack
(
header
(),
children:
<
Widget
>[
containt
(),
Container
(
color:
Color
.
fromRGBO
(
69
,
85
,
79
,
1
),
height:
SizeConfig
.
getHeight
(
200
),
width:
MediaQuery
.
of
(
context
).
size
.
width
,
),
Positioned
(
top:
SizeConfig
.
getPadding
(
50
),
left:
SizeConfig
.
getPadding
(
MediaQuery
.
of
(
context
).
size
.
width
/
3.5
),
child:
Container
(
alignment:
Alignment
.
topCenter
,
child:
Image
.
asset
(
'assets/images/feelver_banner.png'
,
width:
MediaQuery
.
of
(
context
).
size
.
width
/
2.5
,
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
left:
SizeConfig
.
getPadding
(
16
),
child:
Container
(
child:
GestureDetector
(
onTap:
()
{
showDialog
(
context:
context
,
builder:
(
BuildContext
context
)
{
return
NavDrawer
();
},
);
},
child:
Image
.
asset
(
'assets/images/ic_menu.png'
,
height:
SizeConfig
.
getWidth
(
24
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
right:
SizeConfig
.
getPadding
(
60
),
child:
Container
(
child:
Image
.
asset
(
'assets/images/ic_noti.png'
,
height:
SizeConfig
.
getWidth
(
30
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
right:
SizeConfig
.
getPadding
(
20
),
child:
InkWell
(
// onTap: () {
// Navigator.push(
// context,
// MaterialPageRoute(builder: (context) => LoginPage()),
// );
// },
child:
Container
(
child:
Image
.
asset
(
'assets/images/ic_userimg.png'
,
height:
SizeConfig
.
getWidth
(
30
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
),
],
],
),
);
Expanded
(
}
Widget
containt
()
{
return
Expanded
(
child:
SingleChildScrollView
(
child:
SingleChildScrollView
(
child:
Padding
(
child:
Padding
(
padding:
const
EdgeInsets
.
only
(
padding:
const
EdgeInsets
.
only
(
...
@@ -239,8 +169,33 @@ class _PaymentState extends State<Payment> {
...
@@ -239,8 +169,33 @@ class _PaymentState extends State<Payment> {
SizedBox
(
SizedBox
(
height:
SizeConfig
.
getHeight
(
15
),
height:
SizeConfig
.
getHeight
(
15
),
),
),
Container
(
list1
(),
Divider
(
color:
Colors
.
black
,
height:
40
,
indent:
8
,
endIndent:
20
,
),
list2
(),
Divider
(
color:
Colors
.
black
,
height:
40
,
indent:
8
,
endIndent:
20
,
),
list3
(),
],
),
),
),
),
);
}
Widget
list1
()
{
return
Container
(
child:
Row
(
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
children:
<
Widget
>[
Image
.
asset
(
Image
.
asset
(
'assets/images/no-image.png'
,
'assets/images/no-image.png'
,
...
@@ -306,14 +261,11 @@ class _PaymentState extends State<Payment> {
...
@@ -306,14 +261,11 @@ class _PaymentState extends State<Payment> {
)
)
],
],
),
),
),
);
Divider
(
}
color:
Colors
.
black
,
height:
40
,
Widget
list2
()
{
indent:
8
,
return
Container
(
endIndent:
20
,
),
Container
(
child:
Row
(
child:
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
Image
.
asset
(
Image
.
asset
(
...
@@ -380,18 +332,19 @@ class _PaymentState extends State<Payment> {
...
@@ -380,18 +332,19 @@ class _PaymentState extends State<Payment> {
)
)
],
],
),
),
),
);
Divider
(
}
color:
Colors
.
black
,
height:
40
,
Widget
list3
()
{
indent:
8
,
return
Container
(
endIndent:
20
,
child:
Column
(
),
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Text
(
Text
(
'ช่องทางการชำระเงิน'
,
'ช่องทางการชำระเงิน'
,
style:
TextStyle
(
style:
TextStyle
(
color:
Colors
.
black
,
color:
Colors
.
black
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontSize:
SizeConfig
.
getFontSize
(
18
),
fontWeight:
FontWeight
.
bold
,
fontWeight:
FontWeight
.
bold
,
),
),
),
),
...
@@ -466,11 +419,86 @@ class _PaymentState extends State<Payment> {
...
@@ -466,11 +419,86 @@ class _PaymentState extends State<Payment> {
),
),
],
],
),
),
);
}
Widget
header
()
{
return
Container
(
child:
Stack
(
children:
<
Widget
>[
Container
(
color:
Color
.
fromRGBO
(
69
,
85
,
79
,
1
),
height:
SizeConfig
.
getHeight
(
200
),
width:
MediaQuery
.
of
(
context
).
size
.
width
,
),
Positioned
(
top:
SizeConfig
.
getPadding
(
50
),
left:
SizeConfig
.
getPadding
(
MediaQuery
.
of
(
context
).
size
.
width
/
3.5
),
child:
Container
(
alignment:
Alignment
.
topCenter
,
child:
Image
.
asset
(
'assets/images/feelver_banner.png'
,
width:
MediaQuery
.
of
(
context
).
size
.
width
/
2.5
,
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
left:
SizeConfig
.
getPadding
(
16
),
child:
Container
(
child:
GestureDetector
(
onTap:
()
{
showDialog
(
context:
context
,
builder:
(
BuildContext
context
)
{
return
NavDrawer
();
},
);
},
child:
Image
.
asset
(
'assets/images/ic_menu.png'
,
height:
SizeConfig
.
getWidth
(
24
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
right:
SizeConfig
.
getPadding
(
60
),
child:
Container
(
child:
Image
.
asset
(
'assets/images/ic_noti.png'
,
height:
SizeConfig
.
getWidth
(
30
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
right:
SizeConfig
.
getPadding
(
20
),
child:
InkWell
(
// onTap: () {
// Navigator.push(
// context,
// MaterialPageRoute(builder: (context) => LoginPage()),
// );
// },
child:
Container
(
child:
Image
.
asset
(
'assets/images/ic_userimg.png'
,
height:
SizeConfig
.
getWidth
(
30
),
width:
SizeConfig
.
getWidth
(
30
),
fit:
BoxFit
.
cover
,
),
),
),
),
),
),
),
),
],
],
),
);
);
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment