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
ead7c152
Commit
ead7c152
authored
Jul 02, 2020
by
Mobile : Ball (Apprentice)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
05be9c3c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
40 deletions
+93
-40
lib/ui/favorite/favorite.dart
+56
-22
lib/ui/payment/payment_detail.dart
+13
-3
lib/ui/payment/payment_page.dart
+24
-15
No files found.
lib/ui/favorite/favorite.dart
View file @
ead7c152
...
...
@@ -11,6 +11,7 @@ class Favorite extends StatefulWidget {
class
_FavoriteState
extends
State
<
Favorite
>
{
bool
checkBoxValue
=
false
;
int
a
=
1
;
int
b
=
1
;
@override
Widget
build
(
BuildContext
context
)
{
...
...
@@ -38,10 +39,10 @@ class _FavoriteState extends State<Favorite> {
// );
},
padding:
EdgeInsets
.
only
(
left:
150
,
right:
150
,
top:
15
,
bottom:
15
,
left:
SizeConfig
.
getPadding
(
85
)
,
right:
SizeConfig
.
getPadding
(
85
)
,
top:
SizeConfig
.
getPadding
(
15
)
,
bottom:
SizeConfig
.
getPadding
(
15
)
,
),
color:
Color
(
0xFF3694A3
),
child:
Text
(
...
...
@@ -156,7 +157,11 @@ class _FavoriteState extends State<Favorite> {
Container
(
child:
Row
(
children:
<
Widget
>[
Image
.
asset
(
'assets/images/Thai massage.png'
),
Image
.
asset
(
'assets/images/no-image.png'
,
height:
SizeConfig
.
getHeight
(
80
),
width:
SizeConfig
.
getWidth
(
80
),
),
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
8
),
child:
Container
(
...
...
@@ -206,8 +211,8 @@ class _FavoriteState extends State<Favorite> {
children:
<
Widget
>[
Image
.
asset
(
'assets/images/clock.png'
,
height:
20
,
width:
20
,
height:
SizeConfig
.
getHeight
(
20
)
,
width:
SizeConfig
.
getWidth
(
20
)
,
),
Text
(
' 90 นาที'
,
...
...
@@ -233,6 +238,9 @@ class _FavoriteState extends State<Favorite> {
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
10
),
),
Row
(
children:
<
Widget
>[
Container
(
...
...
@@ -242,15 +250,16 @@ class _FavoriteState extends State<Favorite> {
child:
Row
(
children:
<
Widget
>[
SizedBox
(
width:
20.0
,
height:
20.0
,
width:
SizeConfig
.
getPadding
(
20
),
height:
SizeConfig
.
getPadding
(
20
),
child:
RaisedButton
(
child:
Text
(
'-'
),
padding:
EdgeInsets
.
only
(
right:
0
),
onPressed:
()
{
setState
(()
{
a
=
a
-
1
;
a
=
a
-
1
;
});
},
),
...
...
@@ -258,17 +267,27 @@ class _FavoriteState extends State<Favorite> {
Padding
(
padding:
const
EdgeInsets
.
only
(
right:
8
,
left:
8
),
child:
Text
(
'
$a
'
),
child:
Text
(
'
$a
'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
12
),
),
),
),
SizedBox
(
width:
20.0
,
height:
20.0
,
width:
SizeConfig
.
getPadding
(
20
),
height:
SizeConfig
.
getPadding
(
20
),
child:
RaisedButton
(
child:
Text
(
'+'
),
padding:
EdgeInsets
.
only
(
right:
0
),
onPressed:
()
{
a
=
a
+
1
;
setState
(()
{
a
=
a
+
1
;
});
},
),
),
...
...
@@ -306,7 +325,11 @@ class _FavoriteState extends State<Favorite> {
Container
(
child:
Row
(
children:
<
Widget
>[
Image
.
asset
(
'assets/images/Thai massage.png'
),
Image
.
asset
(
'assets/images/no-image.png'
,
height:
SizeConfig
.
getHeight
(
80
),
width:
SizeConfig
.
getWidth
(
80
),
),
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
8
),
child:
Container
(
...
...
@@ -383,6 +406,9 @@ class _FavoriteState extends State<Favorite> {
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
10
),
),
Row
(
children:
<
Widget
>[
Container
(
...
...
@@ -392,28 +418,36 @@ class _FavoriteState extends State<Favorite> {
child:
Row
(
children:
<
Widget
>[
SizedBox
(
width:
20.0
,
height:
20.0
,
width:
SizeConfig
.
getPadding
(
20
)
,
height:
SizeConfig
.
getPadding
(
20
)
,
child:
RaisedButton
(
child:
Text
(
'-'
),
padding:
EdgeInsets
.
only
(
right:
0
),
onPressed:
()
{},
onPressed:
()
{
setState
(()
{
b
=
b
-
1
;
});
},
),
),
Padding
(
padding:
const
EdgeInsets
.
only
(
right:
8
,
left:
8
),
child:
Text
(
'
1
'
),
child:
Text
(
'
$b
'
),
),
SizedBox
(
width:
20.0
,
height:
20.0
,
width:
SizeConfig
.
getPadding
(
20
)
,
height:
SizeConfig
.
getPadding
(
20
)
,
child:
RaisedButton
(
child:
Text
(
'+'
),
padding:
EdgeInsets
.
only
(
right:
0
),
onPressed:
()
{},
onPressed:
()
{
setState
(()
{
b
=
b
+
1
;
});
},
),
),
],
...
...
lib/ui/payment/payment_detail.dart
View file @
ead7c152
...
...
@@ -154,7 +154,12 @@ class _PaymentdetailState extends State<Paymentdetail> {
Container
(
child:
Row
(
children:
<
Widget
>[
Image
.
asset
(
'assets/images/Thai massage.png'
),
Image
.
asset
(
'assets/images/no-image.png'
,
height:
SizeConfig
.
getPadding
(
80
),
width:
SizeConfig
.
getPadding
(
80
),
fit:
BoxFit
.
cover
,
),
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
8
),
child:
Container
(
...
...
@@ -187,7 +192,7 @@ class _PaymentdetailState extends State<Paymentdetail> {
Row
(
children:
<
Widget
>[
Text
(
'฿1,
0
00.00'
,
'฿1,
2
00.00'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
20
),
color:
Color
(
0xFFFD2956
),
...
...
@@ -223,7 +228,12 @@ class _PaymentdetailState extends State<Paymentdetail> {
Container
(
child:
Row
(
children:
<
Widget
>[
Image
.
asset
(
'assets/images/Thai massage.png'
),
Image
.
asset
(
'assets/images/no-image.png'
,
height:
SizeConfig
.
getPadding
(
80
),
width:
SizeConfig
.
getPadding
(
80
),
fit:
BoxFit
.
cover
,
),
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
8
),
child:
Container
(
...
...
lib/ui/payment/payment_page.dart
View file @
ead7c152
...
...
@@ -11,7 +11,6 @@ class Payment extends StatefulWidget {
}
class
_PaymentState
extends
State
<
Payment
>
{
int
a
=
1
;
@override
...
...
@@ -243,7 +242,12 @@ class _PaymentState extends State<Payment> {
Container
(
child:
Row
(
children:
<
Widget
>[
Image
.
asset
(
'assets/images/Thai massage.png'
),
Image
.
asset
(
'assets/images/no-image.png'
,
height:
SizeConfig
.
getPadding
(
80
),
width:
SizeConfig
.
getPadding
(
80
),
fit:
BoxFit
.
cover
,
),
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
8
),
child:
Container
(
...
...
@@ -276,7 +280,7 @@ class _PaymentState extends State<Payment> {
Row
(
children:
<
Widget
>[
Text
(
'฿1,
0
00.00'
,
'฿1,
2
00.00'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
20
),
color:
Color
(
0xFFFD2956
),
...
...
@@ -312,7 +316,12 @@ class _PaymentState extends State<Payment> {
Container
(
child:
Row
(
children:
<
Widget
>[
Image
.
asset
(
'assets/images/Thai massage.png'
),
Image
.
asset
(
'assets/images/no-image.png'
,
height:
SizeConfig
.
getPadding
(
80
),
width:
SizeConfig
.
getPadding
(
80
),
fit:
BoxFit
.
cover
,
),
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
8
),
child:
Container
(
...
...
@@ -320,7 +329,7 @@ class _PaymentState extends State<Payment> {
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Text
(
'
Ivory Relax and Spa
'
,
'
Sunshine Spa & Massage
'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
...
...
@@ -332,7 +341,7 @@ class _PaymentState extends State<Payment> {
height:
SizeConfig
.
getHeight
(
12
),
),
Text
(
'
นวดแผนไทย
'
,
'
Footology
'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
...
...
@@ -389,9 +398,9 @@ class _PaymentState extends State<Payment> {
Row
(
children:
<
Widget
>[
Image
.
asset
(
'assets/images/
ic_credit
.png'
,
height:
50
,
width:
50
,
'assets/images/
no-image
.png'
,
height:
SizeConfig
.
getPadding
(
50
)
,
width:
SizeConfig
.
getPadding
(
50
)
,
),
Text
(
'บัตรเครดิต/บัตรเดบิต'
,
...
...
@@ -412,9 +421,9 @@ class _PaymentState extends State<Payment> {
Row
(
children:
<
Widget
>[
Image
.
asset
(
'assets/images/
ic_Allpay
.png'
,
height:
50
,
width:
50
,
'assets/images/
no-image
.png'
,
height:
SizeConfig
.
getPadding
(
50
)
,
width:
SizeConfig
.
getPadding
(
50
)
,
),
Text
(
'All Pay'
,
...
...
@@ -435,9 +444,9 @@ class _PaymentState extends State<Payment> {
Row
(
children:
<
Widget
>[
Image
.
asset
(
'assets/images/
ic_QFpay
.png'
,
height:
50
,
width:
50
,
'assets/images/
no-image
.png'
,
height:
SizeConfig
.
getPadding
(
50
)
,
width:
SizeConfig
.
getPadding
(
50
)
,
),
Text
(
'QF Pay'
,
...
...
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