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
23705804
Commit
23705804
authored
Aug 31, 2020
by
Mobile : Art
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ui
parent
218ffcf6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
99 additions
and
250 deletions
+99
-250
lib/ui/payment/mycart.dart
+14
-11
lib/ui/payment/payment_detail.dart
+9
-50
lib/ui/payment/payment_page.dart
+74
-178
lib/ui/shop/shop_list_detail.dart
+1
-1
pubspec.lock
+0
-7
pubspec.yaml
+1
-3
No files found.
lib/ui/payment/mycart.dart
View file @
23705804
...
...
@@ -12,6 +12,7 @@ class _MyCartState extends State<MyCart> {
bool
checkBoxValue
=
false
;
int
a
=
1
;
int
b
=
1
;
List
<
int
>
_counter
=
List
();
@override
Widget
build
(
BuildContext
context
)
{
...
...
@@ -161,15 +162,14 @@ class _MyCartState extends State<MyCart> {
return
Column
(
children:
<
Widget
>[
header
(),
// SizedBox(
// height: SizeConfig.getHeight(10),
// ),
_getlist
(),
],
);
}
_getlist
()
{
int
_itemCount
=
0
;
return
Expanded
(
child:
Container
(
margin:
EdgeInsets
.
only
(
...
...
@@ -178,20 +178,23 @@ class _MyCartState extends State<MyCart> {
right:
SizeConfig
.
getPadding
(
16
),
bottom:
SizeConfig
.
getPadding
(
16
),
),
// child: presenter.shopModel == null
// ? Container()
// :
child:
ListView
.
builder
(
itemCount:
3
,
itemCount:
1
,
itemBuilder:
(
context
,
i
)
{
return
list1
();
},),
return
InkWell
(
onTap:
()
{
print
(
i
);
},
child:
list1
(),
);
},
),
),
);
}
Widget
list1
()
{
return
Card
(
elevation:
5
,
child:
Container
(
...
...
@@ -360,7 +363,7 @@ class _MyCartState extends State<MyCart> {
),
Positioned
(
top:
SizeConfig
.
getPadding
(
50
),
left:
SizeConfig
.
getPadding
(
MediaQuery
.
of
(
context
).
size
.
width
/
3.
5
),
left:
SizeConfig
.
getPadding
(
MediaQuery
.
of
(
context
).
size
.
width
/
3.
3
),
child:
Container
(
alignment:
Alignment
.
topCenter
,
child:
Image
.
asset
(
...
...
lib/ui/payment/payment_detail.dart
View file @
23705804
...
...
@@ -194,18 +194,16 @@ class _PaymentdetailState extends State<Paymentdetail> {
}
Widget
header
()
{
return
Container
(
child:
Stack
(
return
Stack
(
children:
<
Widget
>[
Container
(
color:
Color
.
fromRGBO
(
69
,
85
,
79
,
1
),
height:
SizeConfig
.
getHeight
(
20
0
),
height:
SizeConfig
.
getHeight
(
15
0
),
width:
MediaQuery
.
of
(
context
).
size
.
width
,
),
Positioned
(
top:
SizeConfig
.
getPadding
(
50
),
left:
SizeConfig
.
getPadding
(
MediaQuery
.
of
(
context
).
size
.
width
/
3.5
),
left:
SizeConfig
.
getPadding
(
MediaQuery
.
of
(
context
).
size
.
width
/
3.2
),
child:
Container
(
alignment:
Alignment
.
topCenter
,
child:
Image
.
asset
(
...
...
@@ -215,61 +213,22 @@ class _PaymentdetailState extends State<Paymentdetail> {
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
top:
SizeConfig
.
getPadding
(
70
),
left:
SizeConfig
.
getPadding
(
16
),
child:
Container
(
child:
GestureDetector
(
onTap:
()
{
showDialog
(
context:
context
,
builder:
(
BuildContext
context
)
{
return
NavDrawer
();
Navigator
.
pop
(
context
);
},
);
},
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
,
child:
Icon
(
Icons
.
keyboard_arrow_left
,
color:
Colors
.
white
,
size:
SizeConfig
.
getFontSize
(
40
),
),
),
),
),
],
),
);
}
}
lib/ui/payment/payment_page.dart
View file @
23705804
...
...
@@ -43,9 +43,8 @@ class _PaymentState extends State<Payment> {
),
),
Container
(
height:
SizeConfig
.
getHeight
(
40
),
width:
SizeConfig
.
getWidth
(
20
0
),
width:
SizeConfig
.
getWidth
(
18
0
),
color:
Colors
.
white
,
child:
TextField
(
decoration:
InputDecoration
(
...
...
@@ -94,7 +93,6 @@ class _PaymentState extends State<Payment> {
],
),
),
Container
(
padding:
EdgeInsets
.
only
(
right:
SizeConfig
.
getPadding
(
10
),
...
...
@@ -141,135 +139,69 @@ class _PaymentState extends State<Payment> {
return
Column
(
children:
<
Widget
>[
header
(),
containt
(),
],
);
}
Widget
containt
()
{
return
Expanded
(
child:
SingleChildScrollView
(
Container
(
padding:
EdgeInsets
.
only
(
left:
SizeConfig
.
getPadding
(
10
),
right:
SizeConfig
.
getPadding
(
10
),
top:
SizeConfig
.
getPadding
(
8
),
bottom:
SizeConfig
.
getPadding
(
8
),
),
child:
Container
(
// color: Colors.yellow,
alignment:
FractionalOffset
.
topLeft
,
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Text
(
left:
SizeConfig
.
getPadding
(
24
),
top:
SizeConfig
.
getPadding
(
24
)),
alignment:
Alignment
.
topLeft
,
child:
Text
(
'เเพ็คเกจที่คุณเลือก'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
18
),
fontWeight:
FontWeight
.
bold
),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
20
),
),
list1
(),
Divider
(
color:
Colors
.
black
,
height:
SizeConfig
.
getHeight
(
40
),
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
fontWeight:
FontWeight
.
w700
,
),
list2
(),
Divider
(
color:
Colors
.
black
,
height:
SizeConfig
.
getHeight
(
40
),
),
payment
(),
],
),
// SizedBox(
// // height: SizeConfig.getHeight(20),
// ),
_getlist
(),
],
);
}
_getlist
()
{
return
Expanded
(
child:
Container
(
margin:
EdgeInsets
.
only
(
top:
SizeConfig
.
getPadding
(
0
),
left:
SizeConfig
.
getPadding
(
16
),
right:
SizeConfig
.
getPadding
(
16
),
bottom:
SizeConfig
.
getPadding
(
16
),
),
// child: presenter.shopModel == null
// ? Container()
// :
child:
ListView
.
builder
(
itemCount:
3
,
itemBuilder:
(
context
,
i
)
{
return
list1
();
},
),
),
);
}
Widget
list1
()
{
return
Container
(
// color: Colors.red,
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Image
.
asset
(
'assets/images/demo_img.png'
,
height:
SizeConfig
.
getPadding
(
90
),
width:
SizeConfig
.
getPadding
(
80
),
fit:
BoxFit
.
cover
,
),
Expanded
(
return
Card
(
elevation:
5
,
child:
Container
(
// color: Colors.yellow,
padding:
EdgeInsets
.
only
(
left:
SizeConfig
.
getPadding
(
8
),
top:
SizeConfig
.
getPadding
(
8
),
bottom:
SizeConfig
.
getPadding
(
16
),
),
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
(
10
),
),
Text
(
'นวดแผนไทย'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
16
),
fontFamily:
"SF_Pro_Text"
,
color:
Colors
.
black
,
),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
12
),
),
Container
(
// color: Colors.orangeAccent,
child:
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
),
),
),
],
),
),
],
height:
SizeConfig
.
getHeight
(
16
),
),
),
),
],
),
);
}
Widget
list2
()
{
return
Container
(
// color: Colors.red,
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
Row
(
children:
<
Widget
>[
Image
.
asset
(
'assets/images/demo_img.png'
,
...
...
@@ -279,7 +211,7 @@ class _PaymentState extends State<Payment> {
),
Expanded
(
child:
Container
(
//
color: Colors.yellow
,
//
color: Colors.green
,
padding:
EdgeInsets
.
only
(
left:
SizeConfig
.
getPadding
(
8
),
),
...
...
@@ -287,51 +219,49 @@ class _PaymentState extends State<Payment> {
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
(
10
),
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
(
12
),
height:
SizeConfig
.
getHeight
(
15
),
),
Container
(
// color: Colors.orangeAccent,
child:
Row
(
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
(
'X1'
,
Container
(
padding:
EdgeInsets
.
only
(
right:
SizeConfig
.
getPadding
(
16
)),
child:
Text
(
'x1'
,
style:
TextStyle
(
color:
Color
(
0xFF9D9D9D
),
fontSize:
SizeConfig
.
getFontSize
(
20
),
),
),
],
),
],
),
],
),
...
...
@@ -339,6 +269,13 @@ class _PaymentState extends State<Payment> {
),
],
),
// Divider(
// color: Colors.black,
// height: 40,
// ),
],
),
),
);
}
...
...
@@ -437,18 +374,16 @@ class _PaymentState extends State<Payment> {
}
Widget
header
()
{
return
Container
(
child:
Stack
(
return
Stack
(
children:
<
Widget
>[
Container
(
color:
Color
.
fromRGBO
(
69
,
85
,
79
,
1
),
height:
SizeConfig
.
getHeight
(
20
0
),
height:
SizeConfig
.
getHeight
(
15
0
),
width:
MediaQuery
.
of
(
context
).
size
.
width
,
),
Positioned
(
top:
SizeConfig
.
getPadding
(
50
),
left:
SizeConfig
.
getPadding
(
MediaQuery
.
of
(
context
).
size
.
width
/
3.5
),
left:
SizeConfig
.
getPadding
(
MediaQuery
.
of
(
context
).
size
.
width
/
3.3
),
child:
Container
(
alignment:
Alignment
.
topCenter
,
child:
Image
.
asset
(
...
...
@@ -458,61 +393,22 @@ class _PaymentState extends State<Payment> {
),
),
Positioned
(
top:
SizeConfig
.
getPadding
(
77
),
top:
SizeConfig
.
getPadding
(
70
),
left:
SizeConfig
.
getPadding
(
16
),
child:
Container
(
child:
GestureDetector
(
onTap:
()
{
showDialog
(
context:
context
,
builder:
(
BuildContext
context
)
{
return
NavDrawer
();
},
);
Navigator
.
pop
(
context
);
},
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
,
child:
Icon
(
Icons
.
keyboard_arrow_left
,
color:
Colors
.
white
,
size:
SizeConfig
.
getFontSize
(
40
),
),
),
),
),
],
),
);
}
}
lib/ui/shop/shop_list_detail.dart
View file @
23705804
...
...
@@ -78,7 +78,7 @@ class _ShopListDetailState extends State<ShopListDetail> {
Positioned
(
top:
SizeConfig
.
getPadding
(
50
),
left:
SizeConfig
.
getPadding
(
MediaQuery
.
of
(
context
).
size
.
width
/
3.
5
),
MediaQuery
.
of
(
context
).
size
.
width
/
3.
3
),
child:
Container
(
alignment:
Alignment
.
topCenter
,
child:
Image
.
asset
(
...
...
pubspec.lock
View file @
23705804
...
...
@@ -92,13 +92,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "5.2.1"
firebase_crashlytics:
dependency: "direct main"
description:
name: firebase_crashlytics
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4+1"
flutter:
dependency: "direct main"
description: flutter
...
...
pubspec.yaml
View file @
23705804
...
...
@@ -37,9 +37,7 @@ dependencies:
date_format
:
^1.0.8
flutter_datetime_picker
:
^1.4.0
carousel_slider
:
^2.2.1
firebase_crashlytics
:
^0.1.4+1
# firebase_crashlytics: ^0.1.4+1
dev_dependencies
:
flutter_test
:
...
...
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