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
0998e7b2
Commit
0998e7b2
authored
Jun 26, 2020
by
Mobile : Ball (Apprentice)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mycart_page
parent
d3f3deb0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
312 additions
and
1 deletions
+312
-1
assets/images/Thai massage.png
+0
-0
lib/ui/home/home.dart
+5
-0
lib/ui/login/login.dart
+1
-1
lib/ui/mycart/mycart_page.dart
+306
-0
No files found.
assets/images/Thai massage.png
0 → 100644
View file @
0998e7b2
19.5 KB
lib/ui/home/home.dart
View file @
0998e7b2
import
'package:feelverapp/ui/login/login.dart'
;
import
'package:feelverapp/ui/menu/menu.dart'
;
import
'package:feelverapp/ui/mycart/mycart_page.dart'
;
import
'package:feelverapp/ui/nearme/near_me_list.dart'
;
import
'package:feelverapp/ui/reserve/reserve_list.dart'
;
import
'package:feelverapp/ui/shop/shop_list.dart'
;
...
...
@@ -95,6 +96,10 @@ class _HomePageState extends State<HomePage> {
height:
SizeConfig
.
getWidth
(
24
),
),
onPressed:
()
{
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
MyCart
()),
);
// Navigator.push(
// context,
// MaterialPageRoute(builder: (context) => LoginPage()),
...
...
lib/ui/login/login.dart
View file @
0998e7b2
...
...
@@ -50,7 +50,7 @@ class _LoginPageState extends State<LoginPage> with TickerProviderStateMixin {
TabBar
(
indicatorColor:
Color
.
fromRGBO
(
106
,
179
,
170
,
1
),
unselectedLabelColor:
Colors
.
grey
[
400
],
labelColor:
Colors
.
red
,
labelColor:
Colors
.
black
,
controller:
_tabController
,
// onTap: (v) => registerBloc.changeMethodRegister(v),
tabs:
<
Widget
>[
...
...
lib/ui/mycart/mycart_page.dart
0 → 100644
View file @
0998e7b2
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
import
'../../util/SizeConfig.dart'
;
import
'../home/home.dart'
;
import
'../menu/menu.dart'
;
class
MyCart
extends
StatefulWidget
{
@override
_MyCartState
createState
()
=>
_MyCartState
();
}
class
_MyCartState
extends
State
<
MyCart
>
{
bool
checkBoxValue
=
false
;
@override
Widget
build
(
BuildContext
context
)
{
SizeConfig
(
context
);
return
Scaffold
(
body:
_setupView
(),
bottomNavigationBar:
Container
(
color:
Color
.
fromRGBO
(
69
,
85
,
79
,
1
),
height:
SizeConfig
.
getWidth
(
170
),
child:
Column
(
children:
<
Widget
>[
Container
(
margin:
EdgeInsets
.
only
(
left:
SizeConfig
.
getPadding
(
15
),
top:
17
),
child:
Row
(
children:
<
Widget
>[
Icon
(
Icons
.
local_offer
,
color:
Colors
.
white
,
),
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
7
,
right:
12
),
child:
Text
(
'โค้ดส่วนลด'
,
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
),
),
),
Container
(
height:
40
,
width:
200
,
color:
Colors
.
white
,
child:
TextField
(
decoration:
InputDecoration
(
border:
InputBorder
.
none
,
),
),
),
IconButton
(
icon:
Icon
(
Icons
.
keyboard_arrow_right
,
color:
Colors
.
white
,
size:
40
,
),
alignment:
Alignment
(
0
,
0
),
onPressed:
()
{}),
],
),
),
Divider
(
color:
Colors
.
white
,
height:
35
,
indent:
20
,
endIndent:
20
,
),
Container
(
child:
Row
(
children:
<
Widget
>[
Checkbox
(
checkColor:
Color
(
0xFFEEAFB7
),
activeColor:
Colors
.
white
,
value:
checkBoxValue
,
onChanged:
(
bool
value
)
{
setState
(()
{
print
(
value
);
checkBoxValue
=
value
;
});
}),
Text
(
'เลือกทั้งหมด'
,
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
16
,
),
),
Container
(
child:
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
50
),
child:
Column
(
children:
<
Widget
>[
Text
(
'รวมทั้งหมด'
,
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
16
,
),
),
Text
(
'฿2,000'
,
style:
TextStyle
(
color:
Color
(
0xFFEEAFB7
),
fontSize:
24
,
),
),
],
),
),
),
Container
(
child:
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
25
),
child:
RaisedButton
(
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
25.0
),
),
onPressed:
()
{
// Navigator.push(
// context,
// MaterialPageRoute(
// builder: (context) => Home(),
// ),
// );
},
padding:
EdgeInsets
.
only
(
left:
35
,
right:
35
,
top:
15
,
bottom:
15
,
),
color:
Color
(
0xFFEEAFB7
),
child:
Text
(
'สั้งซื้อ'
,
style:
TextStyle
(
fontSize:
16
,
color:
Colors
.
white
,
),
),
),
),
),
],
),
),
],
),
),
);
}
_setupView
()
{
return
Column
(
children:
<
Widget
>[
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
,
),
),
),
),
],
),
Expanded
(
child:
SingleChildScrollView
(
child:
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
8
,
bottom:
8
,
),
child:
Card
(
child:
Padding
(
padding:
const
EdgeInsets
.
only
(
right:
10
,
bottom:
25
,
),
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Image
.
asset
(
'assets/images/Thai massage.png'
),
Container
(
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Text
(
'Ivory Relax and Spa'
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
,
fontSize:
16
),
),
SizedBox
(
height:
10
,
),
Text
(
'นวดเเผนไทย'
,
style:
TextStyle
(
fontSize:
16
,
color:
Colors
.
black
,
),
),
SizedBox
(
height:
10
,
),
Row
(
children:
<
Widget
>[
Image
.
asset
(
'assets/images/clock.png'
,
height:
20
,
width:
20
,
),
Text
(
' 90 นาที'
)
],
),
],
),
),
Column
(
children:
<
Widget
>[
IconButton
(
icon:
Icon
(
Icons
.
delete
,
size:
25
,
),
onPressed:
()
{}),
],
)
],
),
),
),
)),
),
],
);
}
}
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