no message

parent 4dee3d82
...@@ -3,6 +3,7 @@ import 'package:feelverapp/ui/my_reviews/my_reviews_page.dart'; ...@@ -3,6 +3,7 @@ import 'package:feelverapp/ui/my_reviews/my_reviews_page.dart';
import 'package:feelverapp/ui/my_service/my_service_tab.dart'; import 'package:feelverapp/ui/my_service/my_service_tab.dart';
import 'package:feelverapp/ui/notification/notification_page.dart'; import 'package:feelverapp/ui/notification/notification_page.dart';
import 'package:feelverapp/ui/other_menu/other_menu_page.dart'; import 'package:feelverapp/ui/other_menu/other_menu_page.dart';
import 'package:feelverapp/ui/shop/shop_Nearby_places.dart';
import 'package:feelverapp/ui/shop/shop_main.dart'; import 'package:feelverapp/ui/shop/shop_main.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'ui/splashscreen/splash_screen_page.dart'; import 'ui/splashscreen/splash_screen_page.dart';
...@@ -19,14 +20,12 @@ class MyApp extends StatelessWidget { ...@@ -19,14 +20,12 @@ class MyApp extends StatelessWidget {
primarySwatch: Colors.blue, primarySwatch: Colors.blue,
), ),
// home: AccountSettingPage(), // home: AccountSettingPage(),
<<<<<<< HEAD
home: MainShop(),
=======
// home: OtherMenuPage(), // home: OtherMenuPage(),
home: MainShop(), //home: ShopNearbyPlacesPage(),
// home: service_tab(), // home: service_tab(),
>>>>>>> facc6447c0f3c38afad557fe3ab0af7590a20bff
// home: SplashScreenPage(), home: MainShop(),
); );
} }
} }
...@@ -7,6 +7,7 @@ class ShopNearbyPlacesPage extends StatefulWidget { ...@@ -7,6 +7,7 @@ class ShopNearbyPlacesPage extends StatefulWidget {
@override @override
_ShopNearbyPlacesPageState createState() => _ShopNearbyPlacesPageState(); _ShopNearbyPlacesPageState createState() => _ShopNearbyPlacesPageState();
} }
final List<String> entries = <String>['A', 'B', 'C'];
class _ShopNearbyPlacesPageState extends State<ShopNearbyPlacesPage> { class _ShopNearbyPlacesPageState extends State<ShopNearbyPlacesPage> {
@override @override
......
...@@ -890,4 +890,5 @@ class _ShopListDetailState extends State<ShopListDetail> { ...@@ -890,4 +890,5 @@ class _ShopListDetailState extends State<ShopListDetail> {
], ],
), ),
); );
}} }
\ No newline at end of file }
...@@ -17,7 +17,6 @@ class _MainShopState extends State<MainShop> ...@@ -17,7 +17,6 @@ class _MainShopState extends State<MainShop>
with SingleTickerProviderStateMixin { with SingleTickerProviderStateMixin {
TabController _controller; TabController _controller;
void initState() { void initState() {
// TODO: implement initState // TODO: implement initState
super.initState(); super.initState();
...@@ -33,15 +32,14 @@ class _MainShopState extends State<MainShop> ...@@ -33,15 +32,14 @@ class _MainShopState extends State<MainShop>
} }
void _handleTabSelection() { void _handleTabSelection() {
setState(() { setState(() {});
});
} }
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
SizeConfig(context); SizeConfig(context);
return new Scaffold( return new Scaffold(
appBar: new AppBar( appBar: new AppBar(
leading: IconButton( leading: IconButton(
icon: Icon(Icons.arrow_back_ios, color: Colors.white), icon: Icon(Icons.arrow_back_ios, color: Colors.white),
...@@ -134,7 +132,6 @@ class _MainShopState extends State<MainShop> ...@@ -134,7 +132,6 @@ class _MainShopState extends State<MainShop>
), ),
), ),
new Container( new Container(
height: double.maxFinite, height: double.maxFinite,
child: new TabBarView( child: new TabBarView(
...@@ -146,7 +143,7 @@ class _MainShopState extends State<MainShop> ...@@ -146,7 +143,7 @@ class _MainShopState extends State<MainShop>
// child: getlist(), // child: getlist(),
//width: 20, //width: 20,
), ),
Column( Column(
children: <Widget>[ children: <Widget>[
Container( Container(
...@@ -262,12 +259,12 @@ class _MainShopState extends State<MainShop> ...@@ -262,12 +259,12 @@ class _MainShopState extends State<MainShop>
//width: 20, //width: 20,
), ),
// //
Container( Container(
// width: double.maxFinite, // width: double.maxFinite,
// color: Colors.yellow, // color: Colors.yellow,
// child: setupView(), // child: setupView(),
child: ShopNearbyPlacesPage(), child: ShopNearbyPlacesPage(),
), ),
], ],
), ),
), ),
......
...@@ -14,12 +14,14 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> { ...@@ -14,12 +14,14 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
SizeConfig(context); SizeConfig(context);
return Container( return Container(
child: ListView( child: ListView(
children: <Widget>[ children: <Widget>[
Column( Column(
children: <Widget>[ children: <Widget>[
Texttop(), Texttop(),
Card1(), Card1(),
], ],
), ),
], ],
...@@ -34,7 +36,7 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> { ...@@ -34,7 +36,7 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
left: SizeConfig.getPadding(16), left: SizeConfig.getPadding(16),
top: SizeConfig.getPadding(20), top: SizeConfig.getPadding(20),
bottom: SizeConfig.getPadding(10)), bottom: SizeConfig.getPadding(10)),
child: Row( child: SingleChildScrollView(child: Row(
children: <Widget>[ children: <Widget>[
Text( Text(
'รีวิว(จากผู้ใช้บริการจริง)', 'รีวิว(จากผู้ใช้บริการจริง)',
...@@ -43,9 +45,7 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> { ...@@ -43,9 +45,7 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
fontSize: SizeConfig.getFontSize(14), fontSize: SizeConfig.getFontSize(14),
), ),
), ),
SizedBox( Spacer(),
width: SizeConfig.getWidth(145),
),
Text( Text(
'ดูทั้งหมด', 'ดูทั้งหมด',
style: TextStyle( style: TextStyle(
...@@ -54,12 +54,12 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> { ...@@ -54,12 +54,12 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
), ),
), ),
], ],
), ),),
); );
} }
Widget Card1() { Widget Card1() {
return Card( return Card(
margin: EdgeInsets.only( margin: EdgeInsets.only(
right: SizeConfig.getPadding(16), right: SizeConfig.getPadding(16),
left: SizeConfig.getPadding(16), left: SizeConfig.getPadding(16),
...@@ -245,7 +245,8 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> { ...@@ -245,7 +245,8 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
Column( Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Row( SingleChildScrollView(child: Row(
children: <Widget>[ children: <Widget>[
Text( Text(
'Rattaya Pratumkan', 'Rattaya Pratumkan',
...@@ -253,12 +254,14 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> { ...@@ -253,12 +254,14 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
fontSize: SizeConfig.getFontSize(20), fontSize: SizeConfig.getFontSize(20),
color: Colors.black), color: Colors.black),
), ),
SizedBox( SizedBox(
width: SizeConfig.getWidth(60), width: SizeConfig.getWidth(35),
),
Icon(Icons.more_vert),
],
), ),
Container(
child: Icon(Icons.more_vert),)
],
),),
SizedBox( SizedBox(
height: SizeConfig.getHeight(5), height: SizeConfig.getHeight(5),
), ),
......
...@@ -14,7 +14,6 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -14,7 +14,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
double rate4 = 0; double rate4 = 0;
double rate5 = 0; double rate5 = 0;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
SizeConfig(context); SizeConfig(context);
...@@ -63,7 +62,6 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -63,7 +62,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
// color: Colors.yellow, // color: Colors.yellow,
height: SizeConfig.getHeight(250), height: SizeConfig.getHeight(250),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Container( Container(
padding: EdgeInsets.all(10), padding: EdgeInsets.all(10),
...@@ -170,12 +168,14 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -170,12 +168,14 @@ class _ShopServicePageState extends State<ShopServicePage> {
), ),
], ],
), ),
SizedBox(height: SizeConfig.getHeight(5),), SizedBox(
height: SizeConfig.getHeight(5),
),
RatingStar( RatingStar(
isRating: true, isRating: true,
rate: rate1, rate: rate1,
starSize: 20, starSize: 20,
onChangeRate: (i){ onChangeRate: (i) {
setState(() { setState(() {
rate1 = i; rate1 = i;
print(i); print(i);
...@@ -185,7 +185,6 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -185,7 +185,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
], ],
), ),
), ),
], ],
), ),
), ),
...@@ -197,6 +196,7 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -197,6 +196,7 @@ class _ShopServicePageState extends State<ShopServicePage> {
), ),
); );
} }
Widget Card2() { Widget Card2() {
return Card( return Card(
margin: EdgeInsets.only( margin: EdgeInsets.only(
...@@ -229,7 +229,6 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -229,7 +229,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
// color: Colors.yellow, // color: Colors.yellow,
height: SizeConfig.getHeight(250), height: SizeConfig.getHeight(250),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Container( Container(
padding: EdgeInsets.all(10), padding: EdgeInsets.all(10),
...@@ -336,12 +335,14 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -336,12 +335,14 @@ class _ShopServicePageState extends State<ShopServicePage> {
), ),
], ],
), ),
SizedBox(height: SizeConfig.getHeight(5),), SizedBox(
height: SizeConfig.getHeight(5),
),
RatingStar( RatingStar(
isRating: true, isRating: true,
rate: rate2, rate: rate2,
starSize: 20, starSize: 20,
onChangeRate: (i){ onChangeRate: (i) {
setState(() { setState(() {
rate2 = i; rate2 = i;
print(i); print(i);
...@@ -351,7 +352,6 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -351,7 +352,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
], ],
), ),
), ),
], ],
), ),
), ),
...@@ -363,6 +363,7 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -363,6 +363,7 @@ class _ShopServicePageState extends State<ShopServicePage> {
), ),
); );
} }
Widget Card3() { Widget Card3() {
return Card( return Card(
margin: EdgeInsets.only( margin: EdgeInsets.only(
...@@ -395,7 +396,6 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -395,7 +396,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
// color: Colors.yellow, // color: Colors.yellow,
height: SizeConfig.getHeight(250), height: SizeConfig.getHeight(250),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Container( Container(
padding: EdgeInsets.all(10), padding: EdgeInsets.all(10),
...@@ -502,12 +502,14 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -502,12 +502,14 @@ class _ShopServicePageState extends State<ShopServicePage> {
), ),
], ],
), ),
SizedBox(height: SizeConfig.getHeight(5),), SizedBox(
height: SizeConfig.getHeight(5),
),
RatingStar( RatingStar(
isRating: true, isRating: true,
rate: rate3, rate: rate3,
starSize: 20, starSize: 20,
onChangeRate: (i){ onChangeRate: (i) {
setState(() { setState(() {
rate3 = i; rate3 = i;
print(i); print(i);
...@@ -517,7 +519,6 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -517,7 +519,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
], ],
), ),
), ),
], ],
), ),
), ),
...@@ -529,6 +530,7 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -529,6 +530,7 @@ class _ShopServicePageState extends State<ShopServicePage> {
), ),
); );
} }
Widget Card4() { Widget Card4() {
return Card( return Card(
margin: EdgeInsets.only( margin: EdgeInsets.only(
...@@ -561,7 +563,6 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -561,7 +563,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
// color: Colors.yellow, // color: Colors.yellow,
height: SizeConfig.getHeight(250), height: SizeConfig.getHeight(250),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Container( Container(
padding: EdgeInsets.all(10), padding: EdgeInsets.all(10),
...@@ -668,12 +669,14 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -668,12 +669,14 @@ class _ShopServicePageState extends State<ShopServicePage> {
), ),
], ],
), ),
SizedBox(height: SizeConfig.getHeight(5),), SizedBox(
height: SizeConfig.getHeight(5),
),
RatingStar( RatingStar(
isRating: true, isRating: true,
rate: rate4, rate: rate4,
starSize: 20, starSize: 20,
onChangeRate: (i){ onChangeRate: (i) {
setState(() { setState(() {
rate4 = i; rate4 = i;
print(i); print(i);
...@@ -683,7 +686,6 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -683,7 +686,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
], ],
), ),
), ),
], ],
), ),
), ),
...@@ -695,6 +697,7 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -695,6 +697,7 @@ class _ShopServicePageState extends State<ShopServicePage> {
), ),
); );
} }
Widget Card5() { Widget Card5() {
return Card( return Card(
margin: EdgeInsets.only( margin: EdgeInsets.only(
...@@ -727,7 +730,6 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -727,7 +730,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
// color: Colors.yellow, // color: Colors.yellow,
height: SizeConfig.getHeight(250), height: SizeConfig.getHeight(250),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Container( Container(
padding: EdgeInsets.all(10), padding: EdgeInsets.all(10),
...@@ -834,12 +836,14 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -834,12 +836,14 @@ class _ShopServicePageState extends State<ShopServicePage> {
), ),
], ],
), ),
SizedBox(height: SizeConfig.getHeight(5),), SizedBox(
height: SizeConfig.getHeight(5),
),
RatingStar( RatingStar(
isRating: true, isRating: true,
rate: rate5, rate: rate5,
starSize: 20, starSize: 20,
onChangeRate: (i){ onChangeRate: (i) {
setState(() { setState(() {
rate5 = i; rate5 = i;
print(i); print(i);
...@@ -849,7 +853,6 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -849,7 +853,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
], ],
), ),
), ),
], ],
), ),
), ),
...@@ -861,5 +864,4 @@ class _ShopServicePageState extends State<ShopServicePage> { ...@@ -861,5 +864,4 @@ class _ShopServicePageState extends State<ShopServicePage> {
), ),
); );
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment