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
18a3224b
Commit
18a3224b
authored
Aug 17, 2020
by
Mobile : Art
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
0722bbc6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
206 deletions
+72
-206
ios/Flutter/.last_build_id
+2
-2
lib/ui/home/home.dart
+5
-4
lib/ui/payment/payment_detail.dart
+52
-139
lib/ui/reserve/reserve_date_time.dart
+13
-61
No files found.
ios/Flutter/.last_build_id
View file @
18a3224b
eba39b331d7b395476ba8953e31f8092
\ No newline at end of file
65bf9efbfad64e1b5e4b50eeaed8247f
\ No newline at end of file
lib/ui/home/home.dart
View file @
18a3224b
...
...
@@ -3,6 +3,7 @@ import 'package:feelverapp/ui/home/home_presenter.dart';
import
'package:feelverapp/ui/login/login.dart'
;
import
'package:feelverapp/ui/menu/menu.dart'
;
import
'package:feelverapp/ui/nearme/near_me_list.dart'
;
import
'package:feelverapp/ui/payment/payment_detail.dart'
;
import
'package:feelverapp/ui/reserve/reserve_list.dart'
;
import
'package:feelverapp/ui/shop/shop_list.dart'
;
import
'package:feelverapp/util/Accout_util.dart'
;
...
...
@@ -130,10 +131,10 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
height:
SizeConfig
.
getWidth
(
24
),
),
onPressed:
()
{
//
Navigator.push(
//
context,
// MaterialPageRoute(builder: (context) => LoginPage
()),
//
);
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
Paymentdetail
()),
);
},
),
Text
(
...
...
lib/ui/payment/payment_detail.dart
View file @
18a3224b
...
...
@@ -26,150 +26,63 @@ class _PaymentdetailState extends State<Paymentdetail> {
}
Widget
containt
()
{
List
<
String
>
litems
=
[
"1"
,
"2"
,
"Third"
,
"4"
];
return
Expanded
(
child:
SingleChildScrollView
(
padding:
EdgeInsets
.
only
(
left:
SizeConfig
.
getPadding
(
10
),
right:
SizeConfig
.
getPadding
(
10
),
top:
SizeConfig
.
getPadding
(
8
),
bottom:
SizeConfig
.
getPadding
(
8
),
),
child:
Container
(
alignment:
FractionalOffset
.
topLeft
,
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
alignment:
Alignment
.
topLeft
,
padding:
EdgeInsets
.
only
(
left:
SizeConfig
.
getPadding
(
24
),
right:
SizeConfig
.
getPadding
(
24
),
top:
SizeConfig
.
getPadding
(
12
),
bottom:
SizeConfig
.
getPadding
(
24
)),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
'สั่งซื้อสำเร็จ'
,
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontWeight:
FontWeight
.
bold
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
w700
),
),
Text
(
'รายละเอียดการสั่งซื้อ'
,
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
w500
),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
16
),
),
Divider
(
color:
Colors
.
black
,
height:
40
,
Expanded
(
child:
ListView
.
builder
(
itemCount:
5
,
itemBuilder:
(
BuildContext
ctxt
,
int
index
)
{
return
list1
(
'title'
);
},
),
list1
(),
list2
(),
)
],
),
),
),
);
}
Widget
list1
(
)
{
list1
(
String
title
)
{
return
Container
(
padding:
EdgeInsets
.
only
(
top:
SizeConfig
.
getPadding
(
6
),
bottom:
SizeConfig
.
getPadding
(
16
)),
child:
Column
(
children:
<
Widget
>[
Row
(
children:
<
Widget
>[
Text
(
'Order : 9S284-11506'
,
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontWeight:
FontWeight
.
bold
,
),
),
Spacer
(),
Text
(
'23.02.2020 08:57'
,
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
),
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
15
),
),
Row
(
children:
<
Widget
>[
Image
.
asset
(
'assets/images/demo_img.png'
,
height:
SizeConfig
.
getPadding
(
90
),
width:
SizeConfig
.
getPadding
(
80
),
fit:
BoxFit
.
cover
,
),
Expanded
(
child:
Container
(
// color: Colors.green,
padding:
EdgeInsets
.
only
(
left:
SizeConfig
.
getPadding
(
8
),),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Text
(
'Ivory Relax and Spa'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
bold
,
color:
Colors
.
black
,
),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
12
),
),
Text
(
'นวดแผนไทย'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
color:
Colors
.
black
,
),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
15
),
),
Row
(
children:
<
Widget
>[
Text
(
'฿1,200.00'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
20
),
color:
Color
(
0xFFFD2956
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
bold
,
),
),
Spacer
(),
Text
(
'X1'
,
style:
TextStyle
(
color:
Color
(
0xFF9D9D9D
),
fontSize:
SizeConfig
.
getFontSize
(
20
),
),
),
],
),
],
),
),
),
],
),
Divider
(
color:
Colors
.
black
,
height:
40
,
height:
SizeConfig
.
getHeight
(
16
)
,
),
],
SizedBox
(
height:
SizeConfig
.
getHeight
(
16
),
),
);
}
Widget
list2
()
{
return
Container
(
child:
Column
(
children:
<
Widget
>[
Row
(
children:
<
Widget
>[
Text
(
...
...
@@ -177,22 +90,22 @@ class _PaymentdetailState extends State<Paymentdetail> {
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontWeight:
FontWeight
.
bold
,
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
w700
),
),
Spacer
(),
Text
(
'23.02.2020 08:57'
,
style:
TextStyle
(
color:
Colors
.
black
,
color:
Colors
.
black54
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
w500
),
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
1
5
),
height:
SizeConfig
.
getHeight
(
1
6
),
),
Row
(
children:
<
Widget
>[
...
...
@@ -205,29 +118,30 @@ class _PaymentdetailState extends State<Paymentdetail> {
Expanded
(
child:
Container
(
// color: Colors.green,
padding:
EdgeInsets
.
only
(
left:
SizeConfig
.
getPadding
(
8
),),
padding:
EdgeInsets
.
only
(
left:
SizeConfig
.
getPadding
(
8
),
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Text
(
'
Sunshine Spa & Massage
'
,
'
Ivory Relax and Spa
'
,
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
bold
,
color:
Colors
.
black
,
),
fontWeight:
FontWeight
.
w700
),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
12
),
),
Text
(
'
Footology
'
,
'
นวดแผนไทย
'
,
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
color:
Colors
.
black
,
),
fontWeight:
FontWeight
.
w500
),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
15
),
...
...
@@ -235,17 +149,17 @@ 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
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
bold
,
fontWeight:
FontWeight
.
w700
,
),
),
Spacer
(),
Text
(
'
X
1'
,
'
x
1'
,
style:
TextStyle
(
color:
Color
(
0xFF9D9D9D
),
fontSize:
SizeConfig
.
getFontSize
(
20
),
...
...
@@ -259,16 +173,15 @@ class _PaymentdetailState extends State<Paymentdetail> {
),
],
),
Divider
(
color:
Colors
.
black
,
height:
40
,
),
//
Divider(
//
color: Colors.black,
//
height: 40,
//
),
],
),
);
}
Widget
header
()
{
return
Container
(
child:
Stack
(
...
...
lib/ui/reserve/reserve_date_time.dart
View file @
18a3224b
...
...
@@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
import
'package:flutter_datetime_picker/flutter_datetime_picker.dart'
;
class
ReserveDateTime
extends
StatefulWidget
{
String
bith
=
'ปี / เดือน / วัน'
;
String
bith
=
'ปี / เดือน / วัน
/ เวลาเข้าใช้บริการ
'
;
DateTime
day
;
@override
...
...
@@ -247,7 +247,7 @@ class _ReserveDateTimeState extends State<ReserveDateTime> {
),
Container
(
width:
MediaQuery
.
of
(
context
).
size
.
width
/
1
,
margin:
EdgeInsets
.
only
(
margin:
EdgeInsets
.
only
(
top:
SizeConfig
.
getPadding
(
16
),
left:
SizeConfig
.
getPadding
(
24
),
right:
SizeConfig
.
getPadding
(
24
)),
child:
Card
(
...
...
@@ -266,7 +266,7 @@ class _ReserveDateTimeState extends State<ReserveDateTime> {
setState
(()
{
widget
.
day
=
date
;
widget
.
bith
=
"
${widget.day.year}
-
${widget.day.month}
-
${widget.day.day}
เวลา
${widget.day.
timeZoneOffset.inHours.toString()
}
"
;
"
${widget.day.year}
-
${widget.day.month}
-
${widget.day.day}
เวลา
${widget.day.
hour}
:
${widget.day.minute
}
"
;
print
(
'
${widget.day.year}
/
${widget.day.month}
/
${widget.day.day}
'
);
print
(
widget
.
bith
);
...
...
@@ -274,75 +274,27 @@ class _ReserveDateTimeState extends State<ReserveDateTime> {
print
(
'confirm
$date
'
);
},
currentTime:
DateTime
.
now
(),
locale:
LocaleType
.
th
);
},
// {
// DatePicker.showDatePicker(context,
// showTitleActions: true,
// minTime: DateTime(1980, 3, 5),
// maxTime: DateTime(2025, 6, 7), onChanged: (date) {
// print('change $date');
// }, onConfirm: (date) {
// setState(() {
// widget.day = date;
// widget.bith =
// "${widget.day.year}-${widget.day.month}-${widget.day.day}";
//
// print(
// '${widget.day.year} / ${widget.day.month} / ${widget.day.day}');
// print(widget.bith);
// });
// }, currentTime: DateTime.now(), locale: LocaleType.th);
// },
child:
widget
.
bith
==
'ปี / เดือน / วัน'
child:
widget
.
bith
==
'ปี / เดือน / วัน / เวลาเข้าใช้บริการ'
?
Text
(
'ปี / เดือน / วัน'
,
style:
TextStyle
(
color:
Colors
.
black
),
'ปี / เดือน / วัน / เวลาเข้าใช้บริการ'
,
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
w500
),
)
:
Text
(
'
${widget.bith}
'
,
style:
TextStyle
(
color:
Colors
.
black
),
),
),
),
),
Container
(
alignment:
Alignment
.
topLeft
,
padding:
EdgeInsets
.
only
(
left:
SizeConfig
.
getPadding
(
30
),
top:
SizeConfig
.
getPadding
(
16
)),
child:
Text
(
'ระบุเวลาที่เข้าใช้บริการ'
,
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
SizeConfig
.
getFontSize
(
20
),
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
w500
),
),
),
Padding
(
padding:
EdgeInsets
.
symmetric
(
vertical:
SizeConfig
.
getPadding
(
8.0
),
horizontal:
SizeConfig
.
getPadding
(
24
)),
child:
Card
(
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
SizeConfig
.
getPadding
(
50.0
)),
),
child:
TextFormField
(
// controller: loginBloc.passCtrl,
// validator: loginBloc.validateField,
decoration:
InputDecoration
(
contentPadding:
EdgeInsets
.
symmetric
(
vertical:
SizeConfig
.
getPadding
(
20
),
horizontal:
SizeConfig
.
getPadding
(
16
),
),
// hintText:
// allTranslations.text(key2: 'password', key: 'login'),
border:
OutlineInputBorder
(
borderSide:
BorderSide
.
none
),
),
obscureText:
true
,
)
),
),
),
SizedBox
(
height:
SizeConfig
.
getWidth
(
30
),
),
...
...
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