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
69ad30bf
Commit
69ad30bf
authored
Jul 09, 2020
by
Mobile : Ball (Apprentice)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit shop_reviews
parent
a2d9da5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
720 additions
and
2 deletions
+720
-2
lib/ui/shop/shop_main.dart
+4
-2
lib/ui/shop/shop_reviews.dart
+716
-0
No files found.
lib/ui/shop/shop_main.dart
View file @
69ad30bf
import
'package:feelverapp/ui/nearme/near_me_detail.dart'
;
import
'package:feelverapp/ui/nearme/near_me_detail.dart'
;
import
'package:feelverapp/ui/shop/shop_reviews.dart'
;
import
'package:feelverapp/ui/shop/shop_service.dart'
;
import
'package:feelverapp/ui/shop/shop_service.dart'
;
import
'package:feelverapp/util/SizeConfig.dart'
;
import
'package:feelverapp/util/SizeConfig.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/cupertino.dart'
;
...
@@ -144,6 +145,7 @@ class _MainShopState extends State<MainShop>
...
@@ -144,6 +145,7 @@ class _MainShopState extends State<MainShop>
// child: getlist(),
// child: getlist(),
//width: 20,
//width: 20,
),
),
Column
(
Column
(
children:
<
Widget
>[
children:
<
Widget
>[
Container
(
Container
(
...
@@ -253,8 +255,8 @@ class _MainShopState extends State<MainShop>
...
@@ -253,8 +255,8 @@ class _MainShopState extends State<MainShop>
//width: 20,
//width: 20,
Container
(
Container
(
color:
Colors
.
red
,
//
color: Colors.red,
height:
50
,
child:
ShopReviewsPage
()
,
// child: getlist(),
// child: getlist(),
//width: 20,
//width: 20,
),
),
...
...
lib/ui/shop/shop_reviews.dart
0 → 100644
View file @
69ad30bf
import
'package:feelverapp/util/SizeConfig.dart'
;
import
'package:feelverapp/util/rating_star.dart'
;
import
'package:flutter/material.dart'
;
class
ShopReviewsPage
extends
StatefulWidget
{
@override
_ShopReviewsPageState
createState
()
=>
_ShopReviewsPageState
();
}
class
_ShopReviewsPageState
extends
State
<
ShopReviewsPage
>
{
double
rate1
=
0
;
@override
Widget
build
(
BuildContext
context
)
{
SizeConfig
(
context
);
return
Container
(
child:
ListView
(
children:
<
Widget
>[
Column
(
children:
<
Widget
>[
Texttop
(),
Card1
(),
],
),
],
),
);
}
Widget
Texttop
()
{
return
Container
(
margin:
EdgeInsets
.
only
(
right:
SizeConfig
.
getPadding
(
16
),
left:
SizeConfig
.
getPadding
(
16
),
top:
SizeConfig
.
getPadding
(
20
),
bottom:
SizeConfig
.
getPadding
(
10
)),
child:
Row
(
children:
<
Widget
>[
Text
(
'รีวิว(จากผู้ใช้บริการจริง)'
,
style:
TextStyle
(
color:
Color
(
0xFF6AB3AA
),
fontSize:
SizeConfig
.
getFontSize
(
16
),
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
120
),
),
Text
(
'ดูทั้งหมด'
,
style:
TextStyle
(
color:
Colors
.
black
,
fontSize:
SizeConfig
.
getFontSize
(
16
),
),
),
],
),
);
}
Widget
Card1
()
{
return
Card
(
margin:
EdgeInsets
.
only
(
right:
SizeConfig
.
getPadding
(
16
),
left:
SizeConfig
.
getPadding
(
16
),
top:
SizeConfig
.
getPadding
(
20
),
bottom:
SizeConfig
.
getPadding
(
10
)),
child:
Container
(
margin:
EdgeInsets
.
only
(
right:
15
,
left:
15
,
bottom:
20
,
top:
20
),
// color: Colors.blueGrey,
child:
Column
(
children:
<
Widget
>[
Container
(
// color: Colors.blueGrey,
child:
Column
(
children:
<
Widget
>[
Row
(
children:
<
Widget
>[
Text
(
'4.4'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
16
),
color:
Color
(
0xFFD5D5D5
),
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
8
),
),
RatingStar
(
isRating:
true
,
rate:
rate1
,
starSize:
20
,
onChangeRate:
(
i
)
{
setState
(()
{
rate1
=
i
;
print
(
i
);
});
},
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
8
),
),
Text
(
'(221)'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
16
),
color:
Color
(
0xFFD5D5D5
),
),
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
35
),
),
Row
(
children:
<
Widget
>[
Text
(
'คุ้มค่า'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
16
),
color:
Colors
.
black
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
165
),
),
RatingStar
(
isRating:
true
,
rate:
rate1
,
starSize:
20
,
onChangeRate:
(
i
)
{
setState
(()
{
rate1
=
i
;
print
(
i
);
});
},
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
15
),
),
Row
(
children:
<
Widget
>[
Text
(
'บรรยากาศดี'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
16
),
color:
Colors
.
black
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
120
),
),
RatingStar
(
isRating:
true
,
rate:
rate1
,
starSize:
20
,
onChangeRate:
(
i
)
{
setState
(()
{
rate1
=
i
;
print
(
i
);
});
},
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
15
),
),
Row
(
children:
<
Widget
>[
Text
(
'บริการเยี่ยม'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
16
),
color:
Colors
.
black
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
125
),
),
RatingStar
(
isRating:
true
,
rate:
rate1
,
starSize:
20
,
onChangeRate:
(
i
)
{
setState
(()
{
rate1
=
i
;
print
(
i
);
});
},
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
15
),
),
Row
(
children:
<
Widget
>[
Text
(
'สะอาด'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
16
),
color:
Colors
.
black
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
160
),
),
RatingStar
(
isRating:
true
,
rate:
rate1
,
starSize:
20
,
onChangeRate:
(
i
)
{
setState
(()
{
rate1
=
i
;
print
(
i
);
});
},
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
15
),
),
],
),
),
Divider
(
color:
Color
(
0xFF606060
),
),
Container
(
// color: Colors.deepPurpleAccent,
child:
Row
(
children:
<
Widget
>[
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
50
),
child:
Image
.
network
(
'https://scontent.fbkk7-2.fna.fbcdn.net/v/t1.0-9/104204530_3370427592977187_6031309814586327212_o.jpg?_nc_cat=106&_nc_sid=110474&_nc_eui2=AeE2vpoR5NHZLbG8b3YABiSdSsMCoPYM3W1KwwKg9gzdbZuYqR1gPnkW3tGe-TS2Vtphdvn2OuvO2CdDLaCMVvcI&_nc_ohc=T5EK3sWOgtAAX994m4I&_nc_ht=scontent.fbkk7-2.fna&oh=0b3e434546b19e256c07ecd6a4d499fb&oe=5F098A94'
,
width:
55.0
,
height:
55.0
,
fit:
BoxFit
.
cover
,
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
10
),
),
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Row
(
children:
<
Widget
>[
Text
(
'Rattaya Pratumkan'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
20
),
color:
Colors
.
black
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
60
),
),
Icon
(
Icons
.
more_vert
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
5
),
),
RatingStar
(
isRating:
true
,
rate:
rate1
,
starSize:
20
,
onChangeRate:
(
i
)
{
setState
(()
{
rate1
=
i
;
print
(
i
);
});
},
),
],
),
],
),
),
Container
(
// color: Colors.blue,
child:
Column
(
children:
<
Widget
>[
Padding
(
padding:
const
EdgeInsets
.
only
(
top:
10
,
bottom:
10
,
left:
2
,
right:
2
),
child:
Text
(
'การบริการและบรรยากาศดีมาก มีห้องอาบน้ำพร้อมผ้าเช็ดตัว สบู่ ครีมสระผม พนักงานดูแลเอาใจใส่ และคอยแนะนำตลอดจนถึง therapist มีความเป็นมืออาชีพให้ความผ่อนคลายแก่ลูกค้า'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
12
),
),
),
),
Row
(
children:
<
Widget
>[
RaisedButton
(
color:
Color
(
0xFF3694A3
),
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
20
),
),
onPressed:
()
{},
child:
Text
(
"บริการดีมาก"
,
style:
TextStyle
(
color:
Colors
.
white
,
),
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
14
),
),
RaisedButton
(
color:
Color
(
0xFF3694A3
),
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
20
),
),
onPressed:
()
{},
child:
Padding
(
padding:
const
EdgeInsets
.
only
(
right:
10
,
left:
10
,
),
child:
Text
(
"คุ้มค่าดี"
,
style:
TextStyle
(
color:
Colors
.
white
,
),
),
),
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
10
),),
],
),
),
Container
(
color:
Color
(
0xFFF2F2F2
),
child:
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
30
,
top:
20
,
bottom:
20
,),
child:
Row
(
children:
<
Widget
>[
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
10
),
child:
Image
.
asset
(
"assets/images/demo_img.png"
,
width:
100.0
,
height:
90.0
,
fit:
BoxFit
.
cover
,
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
10
),
),
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Text
(
'service : Spa Cenvaree'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
14
),
color:
Colors
.
black
),
),
Text
(
"Ladies' Day"
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
14
),
color:
Colors
.
black
),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
5
),),
Text
(
"03/16/2019 12:49"
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
14
),
color:
Color
(
0xFF6AB3AA
),),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
9
),),
Row
(
children:
<
Widget
>[
Icon
(
Icons
.
access_time
,
color:
Color
(
0xFFEEAFB7
),),
Text
(
' 150Min'
)
],)
],
),
],
),
),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
30
),),
Container
(
// color: Colors.deepPurpleAccent,
child:
Row
(
children:
<
Widget
>[
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
50
),
child:
Image
.
network
(
'https://scontent.fbkk7-2.fna.fbcdn.net/v/t1.0-9/104204530_3370427592977187_6031309814586327212_o.jpg?_nc_cat=106&_nc_sid=110474&_nc_eui2=AeE2vpoR5NHZLbG8b3YABiSdSsMCoPYM3W1KwwKg9gzdbZuYqR1gPnkW3tGe-TS2Vtphdvn2OuvO2CdDLaCMVvcI&_nc_ohc=T5EK3sWOgtAAX994m4I&_nc_ht=scontent.fbkk7-2.fna&oh=0b3e434546b19e256c07ecd6a4d499fb&oe=5F098A94'
,
width:
55.0
,
height:
55.0
,
fit:
BoxFit
.
cover
,
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
10
),
),
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Row
(
children:
<
Widget
>[
Text
(
'Rattaya Pratumkan'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
20
),
color:
Colors
.
black
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
60
),
),
Icon
(
Icons
.
more_vert
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
5
),
),
RatingStar
(
isRating:
true
,
rate:
rate1
,
starSize:
20
,
onChangeRate:
(
i
)
{
setState
(()
{
rate1
=
i
;
print
(
i
);
});
},
),
],
),
],
),
),
Container
(
// color: Colors.blue,
child:
Column
(
children:
<
Widget
>[
Padding
(
padding:
const
EdgeInsets
.
only
(
top:
10
,
bottom:
10
,
left:
2
,
right:
2
),
child:
Text
(
'การบริการและบรรยากาศดีมาก มีห้องอาบน้ำพร้อมผ้าเช็ดตัว สบู่ ครีมสระผม พนักงานดูแลเอาใจใส่ และคอยแนะนำตลอดจนถึง therapist มีความเป็นมืออาชีพให้ความผ่อนคลายแก่ลูกค้า'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
12
),
),
),
),
Row
(
children:
<
Widget
>[
RaisedButton
(
color:
Color
(
0xFF3694A3
),
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
20
),
),
onPressed:
()
{},
child:
Text
(
"บริการดีมาก"
,
style:
TextStyle
(
color:
Colors
.
white
,
),
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
14
),
),
RaisedButton
(
color:
Color
(
0xFF3694A3
),
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
20
),
),
onPressed:
()
{},
child:
Padding
(
padding:
const
EdgeInsets
.
only
(
right:
10
,
left:
10
,
),
child:
Text
(
"คุ้มค่าดี"
,
style:
TextStyle
(
color:
Colors
.
white
,
),
),
),
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
10
),),
],
),
),
Container
(
color:
Color
(
0xFFF2F2F2
),
child:
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
30
,
top:
20
,
bottom:
20
,),
child:
Row
(
children:
<
Widget
>[
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
10
),
child:
Image
.
asset
(
"assets/images/demo_img.png"
,
width:
100.0
,
height:
90.0
,
fit:
BoxFit
.
cover
,
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
10
),
),
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Text
(
'service : Spa Cenvaree'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
14
),
color:
Colors
.
black
),
),
Text
(
"Ladies' Day"
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
14
),
color:
Colors
.
black
),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
5
),),
Text
(
"03/16/2019 12:49"
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
14
),
color:
Color
(
0xFF6AB3AA
),),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
9
),),
Row
(
children:
<
Widget
>[
Icon
(
Icons
.
access_time
,
color:
Color
(
0xFFEEAFB7
),),
Text
(
' 150Min'
)
],)
],
),
],
),
),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
30
),),
Container
(
// color: Colors.deepPurpleAccent,
child:
Row
(
children:
<
Widget
>[
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
50
),
child:
Image
.
network
(
'https://scontent.fbkk7-2.fna.fbcdn.net/v/t1.0-9/104204530_3370427592977187_6031309814586327212_o.jpg?_nc_cat=106&_nc_sid=110474&_nc_eui2=AeE2vpoR5NHZLbG8b3YABiSdSsMCoPYM3W1KwwKg9gzdbZuYqR1gPnkW3tGe-TS2Vtphdvn2OuvO2CdDLaCMVvcI&_nc_ohc=T5EK3sWOgtAAX994m4I&_nc_ht=scontent.fbkk7-2.fna&oh=0b3e434546b19e256c07ecd6a4d499fb&oe=5F098A94'
,
width:
55.0
,
height:
55.0
,
fit:
BoxFit
.
cover
,
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
10
),
),
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Row
(
children:
<
Widget
>[
Text
(
'Rattaya Pratumkan'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
20
),
color:
Colors
.
black
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
60
),
),
Icon
(
Icons
.
more_vert
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
5
),
),
RatingStar
(
isRating:
true
,
rate:
rate1
,
starSize:
20
,
onChangeRate:
(
i
)
{
setState
(()
{
rate1
=
i
;
print
(
i
);
});
},
),
],
),
],
),
),
Container
(
// color: Colors.blue,
child:
Column
(
children:
<
Widget
>[
Padding
(
padding:
const
EdgeInsets
.
only
(
top:
10
,
bottom:
10
,
left:
2
,
right:
2
),
child:
Text
(
'การบริการและบรรยากาศดีมาก มีห้องอาบน้ำพร้อมผ้าเช็ดตัว สบู่ ครีมสระผม พนักงานดูแลเอาใจใส่ และคอยแนะนำตลอดจนถึง therapist มีความเป็นมืออาชีพให้ความผ่อนคลายแก่ลูกค้า'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
12
),
),
),
),
Row
(
children:
<
Widget
>[
RaisedButton
(
color:
Color
(
0xFF3694A3
),
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
20
),
),
onPressed:
()
{},
child:
Text
(
"บริการดีมาก"
,
style:
TextStyle
(
color:
Colors
.
white
,
),
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
14
),
),
RaisedButton
(
color:
Color
(
0xFF3694A3
),
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
20
),
),
onPressed:
()
{},
child:
Padding
(
padding:
const
EdgeInsets
.
only
(
right:
10
,
left:
10
,
),
child:
Text
(
"คุ้มค่าดี"
,
style:
TextStyle
(
color:
Colors
.
white
,
),
),
),
),
],
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
10
),),
],
),
),
Container
(
color:
Color
(
0xFFF2F2F2
),
child:
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
30
,
top:
20
,
bottom:
20
,),
child:
Row
(
children:
<
Widget
>[
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
10
),
child:
Image
.
asset
(
"assets/images/demo_img.png"
,
width:
100.0
,
height:
90.0
,
fit:
BoxFit
.
cover
,
),
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
10
),
),
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Text
(
'service : Spa Cenvaree'
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
14
),
color:
Colors
.
black
),
),
Text
(
"Ladies' Day"
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
14
),
color:
Colors
.
black
),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
5
),),
Text
(
"03/16/2019 12:49"
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
14
),
color:
Color
(
0xFF6AB3AA
),),
),
SizedBox
(
height:
SizeConfig
.
getHeight
(
9
),),
Row
(
children:
<
Widget
>[
Icon
(
Icons
.
access_time
,
color:
Color
(
0xFFEEAFB7
),),
Text
(
' 150Min'
)
],)
],
),
],
),
),
),
],
),
),
);
}
}
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