Commit 99ad2318 by art

up

parents 9aec92a7 04853921
import 'package:feelverapp/ui/account_setting/account_setting_page.dart';
import 'package:feelverapp/ui/my_order_status/my_order_status.dart';
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/service_paid.dart';
import 'package:feelverapp/ui/my_service/service_success.dart';
import 'package:feelverapp/ui/my_service/service_ticket.dart';
import 'package:feelverapp/ui/notification/notification_page.dart';
import 'package:feelverapp/ui/other_menu/other_menu_page.dart';
import 'package:feelverapp/ui/payment/mycart.dart';
import 'package:feelverapp/ui/shop/shop_main.dart';
import 'package:flutter/material.dart';
import 'ui/splashscreen/splash_screen_page.dart';
......@@ -26,9 +17,10 @@ class MyApp extends StatelessWidget {
// home: AccountSettingPage(),
// home: OtherMenuPage(),
home: MainShop(),
//home: ShopNearbyPlacesPage(),
// home: service_tab(),
// home: SplashScreenPage(),
home: SplashScreenPage(),
);
}
}
......@@ -20,12 +20,12 @@ class _FavoriteState extends State<Favorite> {
body: _setupView(),
bottomNavigationBar: Container(
color: Color.fromRGBO(69, 85, 79, 1),
height: SizeConfig.getWidth(120),
height: SizeConfig.getHeight(120),
child: Column(
children: <Widget>[
Container(
child: Padding(
padding: const EdgeInsets.only(top: 40),
padding: const EdgeInsets.only(top: 20),
child: RaisedButton(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(25.0),
......@@ -78,7 +78,7 @@ class _FavoriteState extends State<Favorite> {
padding: const EdgeInsets.only(
left: 10,
right: 10,
top: 8,
top: 16,
bottom: 8,
),
child: Container(
......@@ -87,7 +87,15 @@ class _FavoriteState extends State<Favorite> {
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
list1(),
Divider(
color: Colors.black,
height: 40,
),
list2(),
Divider(
color: Colors.black,
height: 40,
),
],
),
),
......@@ -98,35 +106,37 @@ class _FavoriteState extends State<Favorite> {
Widget list1() {
return Container(
child: Column(
children: <Widget>[
Row(
// color: Colors.red,
height: SizeConfig.getHeight(150),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Image.asset(
'assets/images/no-image.png',
height: SizeConfig.getHeight(80),
width: SizeConfig.getWidth(80),
),
Padding(
padding: const EdgeInsets.only(left: 8),
padding: const EdgeInsets.only(left: 10),
child: Image.asset(
'assets/images/demo_img.png',
width: SizeConfig.getWidth(110),
height: SizeConfig.getHeight(150),
fit: BoxFit.fitWidth,
),
),
Expanded(
child: Container(
padding: EdgeInsets.only(
left: SizeConfig.getPadding(10),
right: SizeConfig.getPadding(5),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Row(
Container(
// color: Colors.blue,
child: Row(
children: <Widget>[
Text(
'Ivory Relax and Spa',
style: TextStyle(
fontSize: SizeConfig.getFontSize(16),
fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
SizedBox(
width: SizeConfig.getWidth(60),
),
Spacer(),
Checkbox(
checkColor: Color(0xFFEEAFB7),
activeColor: Colors.white,
......@@ -139,35 +149,28 @@ class _FavoriteState extends State<Favorite> {
}),
],
),
Text(
'นวดแผนไทย',
style: TextStyle(
fontSize: SizeConfig.getFontSize(16),
fontFamily: "SF_Pro_Text",
color: Colors.black,
),
Container(
// color: Colors.white,
child: Text('นวดเเผนไทย'),
),
SizedBox(
height: SizeConfig.getHeight(10),
height: SizeConfig.getHeight(5),
),
Row(
children: <Widget>[
Row(
Container(
// color: Colors.yellow,
child: Row(
children: <Widget>[
Image.asset(
'assets/images/clock.png',
height: SizeConfig.getHeight(20),
width: SizeConfig.getWidth(20),
),
Text(
' 90 นาที',
style: TextStyle(
fontFamily: "SF_Pro_Text",
),
height: 20,
width: 20,
),
SizedBox(
width: SizeConfig.getWidth(95),
width: SizeConfig.getWidth(5),
),
Text('90 นาที'),
Spacer(),
Icon(
Icons.local_offer,
color: Color(0xFFEEAFB7),
......@@ -183,16 +186,12 @@ class _FavoriteState extends State<Favorite> {
),
],
),
],
),
SizedBox(
height: SizeConfig.getHeight(10),
height: SizeConfig.getHeight(5),
),
Row(
children: <Widget>[
Container(
child: Padding(
padding: const EdgeInsets.only(left: 10),
// color: Colors.orangeAccent,
child: Row(
children: <Widget>[
SizedBox(
......@@ -209,14 +208,8 @@ class _FavoriteState extends State<Favorite> {
),
),
Padding(
padding: const EdgeInsets.only(
right: 8, left: 8),
child: Text(
'$a',
style: TextStyle(
fontSize: SizeConfig.getFontSize(12),
),
),
padding: const EdgeInsets.only(right: 8, left: 8),
child: Text('$a'),
),
SizedBox(
width: SizeConfig.getPadding(20),
......@@ -231,13 +224,7 @@ class _FavoriteState extends State<Favorite> {
},
),
),
],
),
),
),
SizedBox(
width: SizeConfig.getWidth(85),
),
Spacer(),
Text(
'฿1,200.00',
style: TextStyle(
......@@ -249,17 +236,10 @@ class _FavoriteState extends State<Favorite> {
),
],
),
],
),
),
),
],
),
Divider(
color: Colors.black,
height: 40,
indent: 8,
endIndent: 20,
),
),
],
),
......@@ -268,35 +248,37 @@ class _FavoriteState extends State<Favorite> {
Widget list2() {
return Container(
child: Column(
children: <Widget>[
Row(
// color: Colors.red,
height: SizeConfig.getHeight(150),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Image.asset(
'assets/images/no-image.png',
height: SizeConfig.getHeight(80),
width: SizeConfig.getWidth(80),
),
Padding(
padding: const EdgeInsets.only(left: 8),
padding: const EdgeInsets.only(left: 10),
child: Image.asset(
'assets/images/demo_img.png',
width: SizeConfig.getWidth(110),
height: SizeConfig.getHeight(150),
fit: BoxFit.fitWidth,
),
),
Expanded(
child: Container(
padding: EdgeInsets.only(
left: SizeConfig.getPadding(10),
right: SizeConfig.getPadding(5),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Row(
Container(
// color: Colors.blue,
child: Row(
children: <Widget>[
Text(
'Sunshine Spa & Massage',
style: TextStyle(
fontSize: SizeConfig.getFontSize(16),
fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
SizedBox(
width: SizeConfig.getWidth(20),
'Ivory Relax and Spa',
),
Spacer(),
Checkbox(
checkColor: Color(0xFFEEAFB7),
activeColor: Colors.white,
......@@ -309,35 +291,28 @@ class _FavoriteState extends State<Favorite> {
}),
],
),
Text(
'นวดแผนไทย',
style: TextStyle(
fontSize: SizeConfig.getFontSize(16),
fontFamily: "SF_Pro_Text",
color: Colors.black,
),
Container(
// color: Colors.white,
child: Text('นวดเเผนไทย'),
),
SizedBox(
height: SizeConfig.getHeight(10),
height: SizeConfig.getHeight(5),
),
Row(
children: <Widget>[
Row(
Container(
// color: Colors.yellow,
child: Row(
children: <Widget>[
Image.asset(
'assets/images/clock.png',
height: 20,
width: 20,
),
Text(
' 90 นาที',
style: TextStyle(
fontFamily: "SF_Pro_Text",
),
),
SizedBox(
width: SizeConfig.getWidth(95),
width: SizeConfig.getWidth(5),
),
Text('90 นาที'),
Spacer(),
Icon(
Icons.local_offer,
color: Color(0xFFEEAFB7),
......@@ -353,16 +328,12 @@ class _FavoriteState extends State<Favorite> {
),
],
),
],
),
SizedBox(
height: SizeConfig.getHeight(10),
height: SizeConfig.getHeight(5),
),
Row(
children: <Widget>[
Container(
child: Padding(
padding: const EdgeInsets.only(left: 10),
// color: Colors.orangeAccent,
child: Row(
children: <Widget>[
SizedBox(
......@@ -379,8 +350,7 @@ class _FavoriteState extends State<Favorite> {
),
),
Padding(
padding: const EdgeInsets.only(
right: 8, left: 8),
padding: const EdgeInsets.only(right: 8, left: 8),
child: Text('$b'),
),
SizedBox(
......@@ -396,13 +366,7 @@ class _FavoriteState extends State<Favorite> {
},
),
),
],
),
),
),
SizedBox(
width: SizeConfig.getWidth(85),
),
Spacer(),
Text(
'฿1,200.00',
style: TextStyle(
......@@ -414,17 +378,10 @@ class _FavoriteState extends State<Favorite> {
),
],
),
],
),
),
),
],
),
Divider(
color: Colors.black,
height: 40,
indent: 8,
endIndent: 20,
),
),
],
),
......
import 'package:feelverapp/ui/home/home.dart';
import 'package:feelverapp/ui/menu/menu.dart';
import 'package:feelverapp/util/SizeConfig.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class MyOrderStatus extends StatefulWidget {
......@@ -55,6 +56,7 @@ class _MyOrderStatusState extends State<MyOrderStatus> {
child: Column(
children: <Widget>[
Container(
// color: Colors.red,
height: SizeConfig.getHeight(280),
child: Stack(
children: <Widget>[
......@@ -82,9 +84,11 @@ class _MyOrderStatusState extends State<MyOrderStatus> {
height: SizeConfig.getWidth(50),
),
),
Positioned(
left: SizeConfig.getPadding(75),
top: SizeConfig.getPadding(190),
Container(
margin: EdgeInsets.only(
top: SizeConfig.getPadding(188),
left: SizeConfig.getPadding(70)),
// color: Colors.orange,
child: Row(
children: <Widget>[
Text(
......@@ -96,13 +100,18 @@ class _MyOrderStatusState extends State<MyOrderStatus> {
fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w700),
),
SizedBox(
width: SizeConfig.getWidth(75),
Spacer(),
Container(
margin: EdgeInsets.only(
right: SizeConfig.getPadding(10),
),
// color: Colors.yellow,
child: Row(
children: <Widget>[
Image.asset(
'assets/images/ic_star_active.png',
width: 18,
height: 18,
width: SizeConfig.getWidth(18),
height: SizeConfig.getHeight(18),
),
Text('4.9'),
],
......@@ -111,12 +120,18 @@ class _MyOrderStatusState extends State<MyOrderStatus> {
],
),
),
],
),
),
Container(
// color: Colors.yellow,
alignment: Alignment.topLeft,
padding: EdgeInsets.only(
left: SizeConfig.getPadding(24),
right: SizeConfig.getPadding(24)),
alignment: Alignment.topLeft,
right: SizeConfig.getPadding(24),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
'วันที่สั่งซื้อ : 23.02.2020 08:57',
......@@ -140,6 +155,7 @@ class _MyOrderStatusState extends State<MyOrderStatus> {
),
),
Container(
// color: Colors.green,
padding: EdgeInsets.only(
top: SizeConfig.getPadding(10),
left: SizeConfig.getPadding(24),
......@@ -156,18 +172,20 @@ class _MyOrderStatusState extends State<MyOrderStatus> {
fontWeight: FontWeight.w700),
),
),
Row(
children: <Widget>[
SizedBox(
width: SizeConfig.getWidth(20),
Container(
// color: Colors.blue,
padding: EdgeInsets.only(
left: SizeConfig.getPadding(24),
),
child: Row(
children: <Widget>[
Image.asset(
'assets/images/clock.png',
width: SizeConfig.getWidth(20),
height: SizeConfig.getWidth(20),
),
SizedBox(
width: SizeConfig.getWidth(10),
width: SizeConfig.getWidth(6),
),
Text(
'90 นาที',
......@@ -178,9 +196,7 @@ class _MyOrderStatusState extends State<MyOrderStatus> {
fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w500),
),
SizedBox(
width: SizeConfig.getWidth(30),
),
Spacer(),
Image.asset(
'assets/images/sell.png',
width: SizeConfig.getWidth(20),
......@@ -213,6 +229,7 @@ class _MyOrderStatusState extends State<MyOrderStatus> {
),
],
),
),
InkWell(
onTap: () {
// Navigator.push(
......@@ -346,25 +363,40 @@ class _MyOrderStatusState extends State<MyOrderStatus> {
),
),
),
Positioned(
Container(
// color: Colors.red,
margin: EdgeInsets.only(
top: SizeConfig.getPadding(150),
),
child: Container(
padding: EdgeInsets.only(left: 20),
padding: EdgeInsets.only(
left: SizeConfig.getPadding(15),
right: SizeConfig.getPadding(15),
),
child: Row(
children: <Widget>[
Column(
children: <Widget>[
Image.asset('assets/images/ic_NotInUse.png'),
Text('ยังไม่ได้ใช้งาน',style: TextStyle(
Image.asset(
'assets/images/ic_NotInUse.png',
),
SizedBox(height: SizeConfig.getHeight(10),),
Text(
'ยังไม่ได้ใช้งาน',
style: TextStyle(
color: Color(0xFFEEAFB7),
fontSize: SizeConfig.getFontSize(12),
),),
),
),
],
),
SizedBox(width: SizeConfig.getWidth(45),),
Spacer(),
Column(
children: <Widget>[
Image.asset('assets/images/ic_check.png',),
Image.asset(
'assets/images/ic_check.png',
),
SizedBox(height: SizeConfig.getHeight(10),),
Text(
'บริการที่พร้อมใช้',
style: TextStyle(
......@@ -374,14 +406,13 @@ class _MyOrderStatusState extends State<MyOrderStatus> {
),
],
),
SizedBox(width: SizeConfig.getWidth(45),),
Spacer(),
Column(
children: <Widget>[
Image.asset(
'assets/images/ic_like.png',
width: 25,
height: 25,
),
SizedBox(height: SizeConfig.getHeight(10),),
Text(
'บริการที่เเล้วเสร็จ',
style: TextStyle(
......@@ -399,5 +430,4 @@ class _MyOrderStatusState extends State<MyOrderStatus> {
),
);
}
}
......@@ -24,7 +24,10 @@ class _MyCartState extends State<MyCart> {
child: Column(
children: <Widget>[
Container(
margin: EdgeInsets.only(left: SizeConfig.getPadding(15), top: 17),
margin: EdgeInsets.only(
left: SizeConfig.getPadding(15),
top: SizeConfig.getPadding(17),
),
child: Row(
children: <Widget>[
Icon(
......@@ -42,8 +45,9 @@ class _MyCartState extends State<MyCart> {
),
),
Container(
height: 40,
width: SizeConfig.getWidth(180),
height: SizeConfig.getHeight(40),
width: SizeConfig.getWidth(200),
color: Colors.white,
child: TextField(
decoration: InputDecoration(
......@@ -57,23 +61,23 @@ class _MyCartState extends State<MyCart> {
color: Colors.white,
size: 40,
),
alignment: Alignment(0, 0),
onPressed: () {}),
],
),
),
Divider(
color: Colors.white,
height: 35,
height: SizeConfig.getHeight(35),
indent: 20,
endIndent: 20,
),
Container(
padding: EdgeInsets.only(
left: SizeConfig.getPadding(10),
right: SizeConfig.getPadding(15),
),
child: Row(
children: <Widget>[
SizedBox(
width: SizeConfig.getWidth(12),
),
Checkbox(
checkColor: Color(0xFFEEAFB7),
activeColor: Colors.white,
......@@ -88,38 +92,36 @@ class _MyCartState extends State<MyCart> {
'เลือกทั้งหมด',
style: TextStyle(
color: Colors.white,
fontSize: 16,
fontSize: SizeConfig.getFontSize(16),
),
),
Spacer(),
Container(
child: Padding(
padding: const EdgeInsets.only(left: 25),
child: Column(
children: <Widget>[
Text(
'รวมทั้งหมด',
style: TextStyle(
color: Colors.white,
fontSize: 16,
fontSize: SizeConfig.getFontSize(16),
),
),
Text(
'฿2,000',
style: TextStyle(
color: Color(0xFFEEAFB7),
fontSize: 24,
fontSize: SizeConfig.getFontSize(24),
),
),
],
),
),
),
Spacer(),
Container(
child: Padding(
padding: const EdgeInsets.only(left: 10),
child: RaisedButton(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(25.0),
borderRadius: BorderRadius.circular(30.0),
),
onPressed: () {
Navigator.push(
......@@ -130,22 +132,21 @@ class _MyCartState extends State<MyCart> {
);
},
padding: EdgeInsets.only(
left: 35,
right: 35,
top: 15,
bottom: 15,
left: SizeConfig.getPadding(35),
right: SizeConfig.getPadding(35),
top: SizeConfig.getPadding(15),
bottom: SizeConfig.getPadding(15),
),
color: Color(0xFFEEAFB7),
child: Text(
'สั่งซื้อ',
style: TextStyle(
fontSize: 16,
fontSize: SizeConfig.getPadding(16),
color: Colors.white,
),
),
),
),
),
],
),
),
......@@ -164,23 +165,20 @@ class _MyCartState extends State<MyCart> {
);
}
Widget containt() {
return Expanded(
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.only(
left: 10,
right: 10,
top: 8,
bottom: 8,
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>[
SizedBox(
height: SizeConfig.getHeight(15),
),
......@@ -188,69 +186,87 @@ class _MyCartState extends State<MyCart> {
list2(),
Divider(
color: Colors.black,
height: 40,
indent: 8,
endIndent: 20,
height: SizeConfig.getHeight(40),
),
// list3(),
],
),
),
),
),
);
}
Widget list1() {
return Card(child: Container(
child: Column(
children: <Widget>[
Row(
return Card(
elevation: 5,
child: Container(
padding: EdgeInsets.only(
left: SizeConfig.getPadding(12),
top: SizeConfig.getPadding(8),
right: SizeConfig.getPadding(10),
bottom: SizeConfig.getPadding(8),
),
// color: Colors.red,
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Image.asset(
'assets/images/no-image.png',
height: SizeConfig.getHeight(80),
width: SizeConfig.getWidth(80),
'assets/images/demo_img.png',
width: SizeConfig.getWidth(110),
height: SizeConfig.getHeight(150),
fit: BoxFit.fitWidth,
),
Padding(
padding: const EdgeInsets.only(left: 8),
Expanded(
child: Container(
padding: EdgeInsets.only(
left: SizeConfig.getPadding(10),
right: SizeConfig.getPadding(5),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Row(
Container(
// color: Colors.blue,
child: Row(
children: <Widget>[
Text(
'Ivory Relax and Spa',
style: TextStyle(
fontSize: SizeConfig.getFontSize(16),
fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.bold,
color: Colors.black,
fontWeight: FontWeight.bold,
fontSize: SizeConfig.getFontSize(16),
),
),
SizedBox(
width: SizeConfig.getWidth(60),
),
Icon(
Icons.delete,
Spacer(),
IconButton(
icon: Icon(Icons.delete),
color: Colors.black,
onPressed: () {
print('delete');
},
),
],
),
Text(
'นวดแผนไทย',
),
Container(
// color: Colors.white,
child: Text(
'นวดเเผนไทย',
style: TextStyle(
fontSize: SizeConfig.getFontSize(16),
fontFamily: "SF_Pro_Text",
color: Colors.black,
fontWeight: FontWeight.bold,
fontSize: SizeConfig.getFontSize(16),
),
),
),
SizedBox(
height: SizeConfig.getHeight(10),
height: SizeConfig.getHeight(5),
),
Row(
Container(
// color: Colors.yellow,
child: Row(
children: <Widget>[
<<<<<<< HEAD
Row(
children: <Widget>[
Image.asset(
......@@ -281,17 +297,39 @@ class _MyCartState extends State<MyCart> {
),
),
],
=======
Image.asset(
'assets/images/clock.png',
height: SizeConfig.getHeight(20),
width: SizeConfig.getWidth(20),
),
SizedBox(
width: SizeConfig.getWidth(5),
),
Text('90 นาที'),
Spacer(),
Icon(
Icons.local_offer,
color: Color(0xFFEEAFB7),
),
Text(
'฿1,599.00',
style: TextStyle(
decoration: TextDecoration.lineThrough,
fontSize: SizeConfig.getFontSize(16),
fontFamily: "SF_Pro_Text",
color: Color(0xFFEEAFB7),
),
>>>>>>> 04853921d96720bb30f1d860c2eeda0a17fa7f23
),
],
),
),
SizedBox(
height: SizeConfig.getHeight(10),
height: SizeConfig.getHeight(5),
),
Row(
children: <Widget>[
Container(
child: Padding(
padding: const EdgeInsets.only(left: 10),
// color: Colors.orangeAccent,
child: Row(
children: <Widget>[
SizedBox(
......@@ -299,7 +337,9 @@ class _MyCartState extends State<MyCart> {
height: SizeConfig.getPadding(20),
child: RaisedButton(
child: Text('-'),
padding: EdgeInsets.only(right: 0),
padding: EdgeInsets.only(
right: SizeConfig.getPadding(0),
),
onPressed: () {
setState(() {
a = a - 1;
......@@ -308,35 +348,29 @@ class _MyCartState extends State<MyCart> {
),
),
Padding(
padding: const EdgeInsets.only(
right: 8, left: 8),
child: Text(
'$a',
style: TextStyle(
fontSize: SizeConfig.getFontSize(12),
),
),
padding: const EdgeInsets.only(right: 8, left: 8),
child: Text('$a'),
),
SizedBox(
<<<<<<< HEAD
width: SizeConfig.getWidth(60),
=======
width: SizeConfig.getPadding(20),
height: SizeConfig.getPadding(20),
child: RaisedButton(
child: Text('+'),
padding: EdgeInsets.only(right: 0),
padding: EdgeInsets.only(
right: SizeConfig.getPadding(0),
),
onPressed: () {
setState(() {
a = a + 1;
});
},
),
>>>>>>> 04853921d96720bb30f1d860c2eeda0a17fa7f23
),
],
),
),
),
SizedBox(
width: SizeConfig.getWidth(60),
),
Spacer(),
Text(
'฿1,200.00',
style: TextStyle(
......@@ -348,8 +382,6 @@ class _MyCartState extends State<MyCart> {
),
],
),
SizedBox(
height: SizeConfig.getHeight(15),
),
],
),
......@@ -357,61 +389,80 @@ class _MyCartState extends State<MyCart> {
),
],
),
],
),
),);
);
}
Widget list2() {
return Card(child: Container(
child: Column(
children: <Widget>[
Row(
return Card(
child: Container(
// color: Colors.red,
padding: EdgeInsets.only(
left: SizeConfig.getPadding(12),
top: SizeConfig.getPadding(8),
right: SizeConfig.getPadding(10),
bottom: SizeConfig.getPadding(8),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Image.asset(
'assets/images/no-image.png',
height: SizeConfig.getHeight(80),
width: SizeConfig.getWidth(80),
'assets/images/demo_img.png',
width: SizeConfig.getWidth(110),
height: SizeConfig.getHeight(150),
fit: BoxFit.fitWidth,
),
Padding(
padding: const EdgeInsets.only(left: 8),
Expanded(
child: Container(
padding: EdgeInsets.only(
left: SizeConfig.getPadding(10),
right: SizeConfig.getPadding(5),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Row(
Container(
// color: Colors.blue,
child: Row(
children: <Widget>[
Text(
'Ivory Relax and Spa',
style: TextStyle(
fontSize: SizeConfig.getFontSize(16),
fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.bold,
color: Colors.black,
fontWeight: FontWeight.bold,
fontSize: SizeConfig.getFontSize(16),
),
),
SizedBox(
width: SizeConfig.getWidth(60),
),
Icon(
Icons.delete,
Spacer(),
IconButton(
icon: Icon(Icons.delete),
color: Colors.black,
onPressed: () {
print('delete');
},
),
],
),
Text(
'นวดแผนไทย',
),
Container(
// color: Colors.white,
child: Text(
'นวดเเผนไทย',
style: TextStyle(
fontSize: SizeConfig.getFontSize(16),
fontFamily: "SF_Pro_Text",
color: Colors.black,
fontWeight: FontWeight.bold,
fontSize: SizeConfig.getFontSize(16),
),
),
),
SizedBox(
height: SizeConfig.getHeight(10),
height: SizeConfig.getHeight(5),
),
Row(
Container(
// color: Colors.yellow,
child: Row(
children: <Widget>[
<<<<<<< HEAD
Row(
children: <Widget>[
Image.asset(
......@@ -442,17 +493,39 @@ class _MyCartState extends State<MyCart> {
),
),
],
=======
Image.asset(
'assets/images/clock.png',
height: SizeConfig.getHeight(20),
width: SizeConfig.getWidth(20),
),
SizedBox(
width: SizeConfig.getWidth(5),
),
Text('90 นาที'),
Spacer(),
Icon(
Icons.local_offer,
color: Color(0xFFEEAFB7),
),
Text(
'฿1,599.00',
style: TextStyle(
decoration: TextDecoration.lineThrough,
fontSize: SizeConfig.getFontSize(16),
fontFamily: "SF_Pro_Text",
color: Color(0xFFEEAFB7),
),
>>>>>>> 04853921d96720bb30f1d860c2eeda0a17fa7f23
),
],
),
),
SizedBox(
height: SizeConfig.getHeight(10),
height: SizeConfig.getHeight(5),
),
Row(
children: <Widget>[
Container(
child: Padding(
padding: const EdgeInsets.only(left: 10),
// color: Colors.orangeAccent,
child: Row(
children: <Widget>[
SizedBox(
......@@ -460,46 +533,38 @@ class _MyCartState extends State<MyCart> {
height: SizeConfig.getPadding(20),
child: RaisedButton(
child: Text('-'),
padding: EdgeInsets.only(right: 0),
padding: EdgeInsets.only(right: SizeConfig.getPadding(0),),
onPressed: () {
setState(() {
b = b - 1;
a = a - 1;
});
},
),
),
Padding(
padding: const EdgeInsets.only(
right: 8, left: 8),
child: Text(
'$b',
style: TextStyle(
fontSize: SizeConfig.getFontSize(12),
),
),
padding: const EdgeInsets.only(right: 8, left: 8),
child: Text('$a'),
),
SizedBox(
<<<<<<< HEAD
width: SizeConfig.getWidth(60),
=======
width: SizeConfig.getPadding(20),
height: SizeConfig.getPadding(20),
child: RaisedButton(
child: Text('+'),
padding: EdgeInsets.only(right: 0),
padding: EdgeInsets.only(right: SizeConfig.getPadding(0),),
onPressed: () {
setState(() {
b = b + 1;
a = a + 1;
});
},
),
>>>>>>> 04853921d96720bb30f1d860c2eeda0a17fa7f23
),
],
),
),
),
SizedBox(
width: SizeConfig.getWidth(60),
),
Spacer(),
Text(
'฿1,000.00',
'฿1,200.00',
style: TextStyle(
fontSize: SizeConfig.getFontSize(20),
color: Color(0xFFFD2956),
......@@ -509,8 +574,6 @@ class _MyCartState extends State<MyCart> {
),
],
),
SizedBox(
height: SizeConfig.getHeight(15),
),
],
),
......@@ -518,13 +581,10 @@ class _MyCartState extends State<MyCart> {
),
],
),
],
),
),);
);
}
Widget header() {
return Container(
child: Stack(
......
......@@ -28,12 +28,11 @@ class _PaymentdetailState extends State<Paymentdetail> {
Widget containt() {
return Expanded(
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.only(
left: 10,
right: 10,
top: 8,
bottom: 8,
padding: EdgeInsets.only(
left: SizeConfig.getPadding(10),
right: SizeConfig.getPadding(10),
top: SizeConfig.getPadding(8),
bottom: SizeConfig.getPadding(8),
),
child: Container(
alignment: FractionalOffset.topLeft,
......@@ -55,8 +54,6 @@ class _PaymentdetailState extends State<Paymentdetail> {
Divider(
color: Colors.black,
height: 40,
indent: 10,
endIndent: 20,
),
list1(),
list2(),
......@@ -64,7 +61,6 @@ class _PaymentdetailState extends State<Paymentdetail> {
),
),
),
),
);
}
......@@ -82,9 +78,13 @@ class _PaymentdetailState extends State<Paymentdetail> {
fontWeight: FontWeight.bold,
),
),
<<<<<<< HEAD
SizedBox(
width: SizeConfig.getWidth(45),
),
=======
Spacer(),
>>>>>>> 04853921d96720bb30f1d860c2eeda0a17fa7f23
Text(
'23.02.2020 08:57',
style: TextStyle(
......@@ -100,14 +100,15 @@ class _PaymentdetailState extends State<Paymentdetail> {
Row(
children: <Widget>[
Image.asset(
'assets/images/no-image.png',
height: SizeConfig.getPadding(80),
'assets/images/demo_img.png',
height: SizeConfig.getPadding(90),
width: SizeConfig.getPadding(80),
fit: BoxFit.cover,
),
Padding(
padding: const EdgeInsets.only(left: 8),
Expanded(
child: Container(
// color: Colors.green,
padding: EdgeInsets.only(left: SizeConfig.getPadding(8),),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
......@@ -145,9 +146,7 @@ class _PaymentdetailState extends State<Paymentdetail> {
fontWeight: FontWeight.bold,
),
),
SizedBox(
width: SizeConfig.getWidth(120),
),
Spacer(),
Text(
'X1',
style: TextStyle(
......@@ -160,14 +159,12 @@ class _PaymentdetailState extends State<Paymentdetail> {
],
),
),
)
),
],
),
Divider(
color: Colors.black,
height: 40,
indent: 10,
endIndent: 20,
),
],
),
......@@ -188,9 +185,13 @@ class _PaymentdetailState extends State<Paymentdetail> {
fontWeight: FontWeight.bold,
),
),
<<<<<<< HEAD
SizedBox(
width: SizeConfig.getWidth(45),
),
=======
Spacer(),
>>>>>>> 04853921d96720bb30f1d860c2eeda0a17fa7f23
Text(
'23.02.2020 08:57',
style: TextStyle(
......@@ -206,14 +207,15 @@ class _PaymentdetailState extends State<Paymentdetail> {
Row(
children: <Widget>[
Image.asset(
'assets/images/no-image.png',
height: SizeConfig.getPadding(80),
'assets/images/demo_img.png',
height: SizeConfig.getPadding(90),
width: SizeConfig.getPadding(80),
fit: BoxFit.cover,
),
Padding(
padding: const EdgeInsets.only(left: 8),
Expanded(
child: Container(
// color: Colors.green,
padding: EdgeInsets.only(left: SizeConfig.getPadding(8),),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
......@@ -251,9 +253,7 @@ class _PaymentdetailState extends State<Paymentdetail> {
fontWeight: FontWeight.bold,
),
),
SizedBox(
width: SizeConfig.getWidth(120),
),
Spacer(),
Text(
'X1',
style: TextStyle(
......@@ -266,20 +266,19 @@ class _PaymentdetailState extends State<Paymentdetail> {
],
),
),
)
),
],
),
Divider(
color: Colors.black,
height: 40,
indent: 10,
endIndent: 20,
),
],
),
);
}
Widget header() {
return Container(
child: Stack(
......
......@@ -22,7 +22,10 @@ class _PaymentState extends State<Payment> {
child: Column(
children: <Widget>[
Container(
margin: EdgeInsets.only(left: SizeConfig.getPadding(15), top: 17),
margin: EdgeInsets.only(
left: SizeConfig.getPadding(15),
top: SizeConfig.getPadding(17),
),
child: Row(
children: <Widget>[
Icon(
......@@ -40,8 +43,13 @@ class _PaymentState extends State<Payment> {
),
),
Container(
<<<<<<< HEAD
height: 40,
width: SizeConfig.getWidth(170),
=======
height: SizeConfig.getHeight(40),
width: SizeConfig.getWidth(200),
>>>>>>> 04853921d96720bb30f1d860c2eeda0a17fa7f23
color: Colors.white,
child: TextField(
decoration: InputDecoration(
......@@ -55,46 +63,42 @@ class _PaymentState extends State<Payment> {
color: Colors.white,
size: 40,
),
alignment: Alignment(0, 0),
onPressed: () {}),
],
),
),
Divider(
color: Colors.white,
height: 35,
height: SizeConfig.getHeight(35),
indent: 20,
endIndent: 20,
),
Container(
child: Row(
children: <Widget>[
SizedBox(
width: SizeConfig.getWidth(75),
),
Spacer(),
Container(
child: Padding(
padding: const EdgeInsets.only(left: 50),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
'ยอดชำระเงินทั้งหมด',
style: TextStyle(
color: Colors.white,
fontSize: 16,
fontSize: SizeConfig.getFontSize(14),
),
),
Text(
'฿2,000',
style: TextStyle(
color: Color(0xFFEEAFB7),
fontSize: 24,
fontSize: SizeConfig.getFontSize(24),
),
),
],
),
),
),
<<<<<<< HEAD
Container(width: SizeConfig.getWidth(100),height: SizeConfig.getHeight(45),
child: Padding(
padding: const EdgeInsets.only(left:10),
......@@ -122,7 +126,37 @@ class _PaymentState extends State<Payment> {
style: TextStyle(
fontSize: 16,
color: Colors.white,
=======
Container(
padding: EdgeInsets.only(
right: SizeConfig.getPadding(10),
left: SizeConfig.getPadding(12),
),
child: RaisedButton(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30.0),
),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => Paymentdetail(),
>>>>>>> 04853921d96720bb30f1d860c2eeda0a17fa7f23
),
);
},
padding: EdgeInsets.only(
left: SizeConfig.getPadding(35),
right: SizeConfig.getPadding(35),
top: SizeConfig.getPadding(15),
bottom: SizeConfig.getPadding(15),
),
color: Color(0xFFEEAFB7),
child: Text(
'ยืนยัน',
style: TextStyle(
fontSize: SizeConfig.getFontSize(16),
color: Colors.white,
),
),
),
......@@ -148,14 +182,14 @@ class _PaymentState extends State<Payment> {
Widget containt() {
return Expanded(
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.only(
left: 10,
right: 10,
top: 8,
bottom: 8,
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,
......@@ -167,45 +201,44 @@ class _PaymentState extends State<Payment> {
fontWeight: FontWeight.bold),
),
SizedBox(
height: SizeConfig.getHeight(15),
height: SizeConfig.getHeight(20),
),
list1(),
Divider(
color: Colors.black,
height: 40,
indent: 8,
endIndent: 20,
height: SizeConfig.getHeight(40),
),
list2(),
Divider(
color: Colors.black,
height: 40,
indent: 8,
endIndent: 20,
height: SizeConfig.getHeight(40),
),
list3(),
payment(),
],
),
),
),
),
);
}
Widget list1() {
return Container(
// color: Colors.red,
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Image.asset(
'assets/images/no-image.png',
height: SizeConfig.getPadding(80),
'assets/images/demo_img.png',
height: SizeConfig.getPadding(90),
width: SizeConfig.getPadding(80),
fit: BoxFit.cover,
),
Padding(
padding: const EdgeInsets.only(left: 8),
Expanded(
child: Container(
// color: Colors.yellow,
padding: EdgeInsets.only(
left: SizeConfig.getPadding(8),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
......@@ -219,7 +252,7 @@ class _PaymentState extends State<Payment> {
),
),
SizedBox(
height: SizeConfig.getHeight(12),
height: SizeConfig.getHeight(10),
),
Text(
'นวดแผนไทย',
......@@ -230,9 +263,11 @@ class _PaymentState extends State<Payment> {
),
),
SizedBox(
height: SizeConfig.getHeight(15),
height: SizeConfig.getHeight(12),
),
Row(
Container(
// color: Colors.orangeAccent,
child: Row(
children: <Widget>[
Text(
'฿1,200.00',
......@@ -243,9 +278,7 @@ class _PaymentState extends State<Payment> {
fontWeight: FontWeight.bold,
),
),
SizedBox(
width: SizeConfig.getWidth(120),
),
Spacer(),
Text(
'X1',
style: TextStyle(
......@@ -255,10 +288,11 @@ class _PaymentState extends State<Payment> {
),
],
),
),
],
),
),
)
),
],
),
);
......@@ -266,17 +300,22 @@ class _PaymentState extends State<Payment> {
Widget list2() {
return Container(
// color: Colors.red,
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Image.asset(
'assets/images/no-image.png',
height: SizeConfig.getPadding(80),
'assets/images/demo_img.png',
height: SizeConfig.getPadding(90),
width: SizeConfig.getPadding(80),
fit: BoxFit.cover,
),
Padding(
padding: const EdgeInsets.only(left: 8),
Expanded(
child: Container(
// color: Colors.yellow,
padding: EdgeInsets.only(
left: SizeConfig.getPadding(8),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
......@@ -290,7 +329,7 @@ class _PaymentState extends State<Payment> {
),
),
SizedBox(
height: SizeConfig.getHeight(12),
height: SizeConfig.getHeight(10),
),
Text(
'Footology',
......@@ -301,9 +340,11 @@ class _PaymentState extends State<Payment> {
),
),
SizedBox(
height: SizeConfig.getHeight(15),
height: SizeConfig.getHeight(12),
),
Row(
Container(
// color: Colors.orangeAccent,
child: Row(
children: <Widget>[
Text(
'฿1,000.00',
......@@ -314,9 +355,7 @@ class _PaymentState extends State<Payment> {
fontWeight: FontWeight.bold,
),
),
SizedBox(
width: SizeConfig.getWidth(120),
),
Spacer(),
Text(
'X1',
style: TextStyle(
......@@ -326,17 +365,19 @@ class _PaymentState extends State<Payment> {
),
],
),
),
],
),
),
)
),
],
),
);
}
Widget list3() {
Widget payment() {
return Container(
// color: Colors.green,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
......@@ -348,6 +389,9 @@ class _PaymentState extends State<Payment> {
fontWeight: FontWeight.bold,
),
),
SizedBox(
height: SizeConfig.getHeight(5),
),
Row(
children: <Widget>[
Image.asset(
......@@ -355,6 +399,9 @@ class _PaymentState extends State<Payment> {
height: SizeConfig.getPadding(50),
width: SizeConfig.getPadding(50),
),
SizedBox(
width: SizeConfig.getWidth(5),
),
Text(
'บัตรเครดิต/บัตรเดบิต',
style: TextStyle(
......@@ -368,8 +415,6 @@ class _PaymentState extends State<Payment> {
Divider(
color: Colors.black,
height: 10,
indent: 8,
endIndent: 20,
),
Row(
children: <Widget>[
......@@ -378,6 +423,9 @@ class _PaymentState extends State<Payment> {
height: SizeConfig.getPadding(50),
width: SizeConfig.getPadding(50),
),
SizedBox(
width: SizeConfig.getWidth(5),
),
Text(
'All Pay',
style: TextStyle(
......@@ -391,8 +439,6 @@ class _PaymentState extends State<Payment> {
Divider(
color: Colors.black,
height: 10,
indent: 8,
endIndent: 20,
),
Row(
children: <Widget>[
......@@ -401,6 +447,9 @@ class _PaymentState extends State<Payment> {
height: SizeConfig.getPadding(50),
width: SizeConfig.getPadding(50),
),
SizedBox(
width: SizeConfig.getWidth(5),
),
Text(
'QF Pay',
style: TextStyle(
......@@ -414,8 +463,6 @@ class _PaymentState extends State<Payment> {
Divider(
color: Colors.black,
height: 10,
indent: 8,
endIndent: 20,
),
],
),
......
import 'package:feelverapp/ui/home/home.dart';
import 'package:feelverapp/ui/menu/menu.dart';
import 'package:feelverapp/util/SizeConfig.dart';
import 'package:flutter/material.dart';
class Shop extends StatefulWidget {
@override
_ShopState createState() => _ShopState();
}
class _ShopState extends State<Shop> {
@override
Widget build(BuildContext context) {
SizeConfig(context);
return ListView(padding: EdgeInsets.all(0), children: <Widget>[
_setupView(),
]);
}
_setupView() {
return Column(
children: <Widget>[
header(),
SizedBox(height: 20),
_listItem1(), bottom(),
SizedBox(height: 30),
Container(
padding: EdgeInsets.only(left: SizeConfig.getPadding(34)),
alignment: Alignment.topLeft,
child: Wrap(
alignment: WrapAlignment.start,
spacing: 10.0, // gap between adjacent chips
runSpacing: 5.0, // gap between lines
children: <Widget>[
FilterChip(
label: Text(
"ทั้งหมด (10)",
style: TextStyle(
color: Colors.white,
fontSize: SizeConfig.getFontSize(15),
fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w500),
),
backgroundColor: Color.fromRGBO(106, 179, 170, 1),
shape: StadiumBorder(
side: BorderSide(color: Colors.white),
),
onSelected: (bool value) {
print("selected");
setState(() {});
},
),
FilterChip(
label: Text(
"ที่เที่ยว (5)",
style: TextStyle(
color: Colors.white,
fontSize: SizeConfig.getFontSize(15),
fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w500),
),
backgroundColor: Color.fromRGBO(106, 179, 170, 1),
shape: StadiumBorder(
side: BorderSide(color: Colors.white),
),
onSelected: (bool value) {
print("selected");
},
),
FilterChip(
label: Text(
"ที่กิน (3)",
style: TextStyle(
color: Colors.white,
fontSize: SizeConfig.getFontSize(15),
fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w500),
),
backgroundColor: Color.fromRGBO(106, 179, 170, 1),
shape: StadiumBorder(
side: BorderSide(color: Colors.white),
),
onSelected: (bool value) {
print("selected");
},
),
FilterChip(
label: Text(
"ที่พัก (1)",
style: TextStyle(
color: Colors.white,
fontSize: SizeConfig.getFontSize(15),
fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w500),
),
backgroundColor: Color.fromRGBO(106, 179, 170, 1),
shape: StadiumBorder(
side: BorderSide(color: Colors.white),
),
onSelected: (bool value) {
print("selected");
},
),
FilterChip(
label: Text(
"กิจกรรม (1)",
style: TextStyle(
color: Colors.white,
fontSize: SizeConfig.getFontSize(15),
fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w500),
),
backgroundColor: Color.fromRGBO(106, 179, 170, 1),
shape: StadiumBorder(
side: BorderSide(color: Colors.white),
),
onSelected: (bool value) {
print("selected");
},
),
],
),
),
SizedBox(height: 30),
// _getlist(),
],
);
}
_getlist() {
final List<String> entries = <String>[
'Ivory Relax and Spa',
'Sunshine Spa & Massage',
'Mandarin Ginger Spa'
];
return Expanded(
child: Container(
padding: EdgeInsets.only(
top: SizeConfig.getPadding(16),
left: SizeConfig.getPadding(16),
right: SizeConfig.getPadding(16),
bottom: SizeConfig.getPadding(10),
),
child: ListView.builder(
itemCount: entries.length,
itemBuilder: (context, i) {
return _listItem1();
},
),
),
);
}
_rating() {
return Container(
height: SizeConfig.getHeight(80),
child: Row(
children: <Widget>[
Text(
'5.0',
textAlign: TextAlign.right,
style: TextStyle(
color: Colors.black38,
fontSize: SizeConfig.getFontSize(16),
fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w700),
),SizedBox(width:5),
Image.asset(
'assets/images/ic_star_active.png',
width: SizeConfig.getWidth(16),
height: SizeConfig.getWidth(16),
),
Image.asset(
'assets/images/ic_star_active.png',
width: SizeConfig.getWidth(16),
height: SizeConfig.getWidth(16),
),
Image.asset(
'assets/images/ic_star_active.png',
width: SizeConfig.getWidth(16),
height: SizeConfig.getWidth(16),
),
Image.asset(
'assets/images/ic_star_active.png',
width: SizeConfig.getWidth(16),
height: SizeConfig.getWidth(16),
),
Image.asset(
'assets/images/ic_star_active.png',
width: SizeConfig.getWidth(16),
height: SizeConfig.getWidth(16),
),
],
),
);
}
Widget _listItem1() {
return Container(
padding: EdgeInsets.only(
left: SizeConfig.getPadding(24), right: SizeConfig.getPadding(24)),
alignment: Alignment.center,
child: Column(
children: <Widget>[
Text(
"SPA Cenvaree @ Centara \nGrand CentralWorld Bangkok",
style: TextStyle(fontSize: 25.0, color: Colors.black),
),
_rating(),
Row(
children: <Widget>[
Text(
"Available Payment",
style: TextStyle(fontSize: 25.0, color: Colors.black),
)
],
),
Row(
children: <Widget>[
Image.asset(
'assets/images/mastercard_logo.png',
width: SizeConfig.getWidth(50),
height: SizeConfig.getWidth(50),
),
],
),
Text(
"A four hand massage performed by two therapists in unison, this experience coordinates a blend of Thai, Swedish, Shiatsu and Reflexology techniques using deep rhythmic movement to leave you feeling completely renewed. Top Tip: This is Khun Tara’s (our Group Spa Director) favourite massage. She loves it because having the sensation of two therapists working on you means your mind can’t concentrate on one area and it basically just gives up! This massage almost forces you to switch your mind off. Try it and see.",
style: TextStyle(fontSize: 18.0, color: Colors.black),
),
// Container(
// alignment: Alignment.topCenter,
// child: Image.network(
// 'https://image.freepik.com/free-photo/girl-massage-spa-salon_110955-422.jpg',
// height: SizeConfig.getHeight(300),
// width: MediaQuery.of(context).size.width,
// fit: BoxFit.cover,
// ),
// ),
],
));
}
Widget header() {
return Container(
child: Stack(
children: <Widget>[
Container(
color: Color.fromRGBO(69, 85, 79, 1),
height: SizeConfig.getHeight(270),
width: MediaQuery.of(context).size.width,
),
Positioned(
top: SizeConfig.getPadding(0),
child: Container(
alignment: Alignment.topCenter,
child: Image.network(
'https://image.freepik.com/free-photo/girl-massage-spa-salon_110955-422.jpg',
height: SizeConfig.getHeight(300),
width: MediaQuery.of(context).size.width,
fit: BoxFit.cover,
),
),
),Positioned(
top: SizeConfig.getPadding(0),
child: Container(
height: SizeConfig.getHeight(300),
width: MediaQuery.of(context).size.width,
alignment: Alignment.topCenter,
color: Colors.deepOrangeAccent.withOpacity(0.4)
),
),
Positioned(
top: SizeConfig.getPadding(150),
right: SizeConfig.getPadding(40),
child: Container(
child: Text(
"SPA Cenvaree @ Centara \nGrand CentralWorld Bangkok",
style: TextStyle(fontSize: 18.0, color: Colors.white),
),
),
),
Positioned(
top: SizeConfig.getPadding(150),
left: 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(80),
width: SizeConfig.getWidth(80),
fit: BoxFit.cover,
),
),
),
),
Positioned(
top: SizeConfig.getPadding(200),
left: SizeConfig.getPadding(100),
child: Container(
padding: EdgeInsets.only(left: 5),
child: Row(
children: <Widget>[
Column(
children: <Widget>[
SizedBox(
width: 90.0,
height: 30.0,
child: FlatButton(
color: Color.fromRGBO(106, 179, 170, 1),
textColor: Colors.white,
disabledColor: Colors.grey,
disabledTextColor: Colors.black,
padding: EdgeInsets.all(0.0),
splashColor: Colors.blueAccent,
onPressed: () {
/*...*/
},
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(20.0)),
child: Text(
"ถูกใจ",
style: TextStyle(fontSize: 12.0),
),
))
],
),
SizedBox(
width: SizeConfig.getWidth(5),
),
SizedBox(
width: 90.0,
height: 30.0,
child: FlatButton(
color: Color.fromRGBO(106, 179, 170, 1),
textColor: Colors.white,
disabledColor: Colors.grey,
disabledTextColor: Colors.black,
padding: EdgeInsets.all(0.0),
splashColor: Colors.blueAccent,
onPressed: () {
/*...*/
},
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(20.0)),
child: Text(
"ติดตาม",
style: TextStyle(fontSize: 12.0),
),
)),
SizedBox(
width: SizeConfig.getWidth(5),
),
SizedBox(
width: 90.0,
height: 30.0,
child: FlatButton(
color: Color.fromRGBO(106, 179, 170, 1),
textColor: Colors.white,
disabledColor: Colors.grey,
disabledTextColor: Colors.black,
padding: EdgeInsets.all(0.0),
splashColor: Colors.blueAccent,
onPressed: () {
/*...*/
},
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(20.0)),
child: Text(
"แชร์",
style: TextStyle(fontSize: 12.0),
),
))
],
),
),
),
],
),
);
}
Widget bottom() {
return Container(
child: Stack(
children: <Widget>[
Container(
color: Color.fromRGBO(106, 179, 170, 1),
height: SizeConfig.getHeight(470),
width: MediaQuery.of(context).size.width,
),
Positioned(
top: SizeConfig.getPadding(0),
child: Container(
alignment: Alignment.topCenter,
child: Image.network(
'https://image.freepik.com/free-photo/girl-massage-spa-salon_110955-422.jpg',
height: SizeConfig.getHeight(300),
width: MediaQuery.of(context).size.width,
fit: BoxFit.cover,
),
),
),
Positioned(
bottom: SizeConfig.getPadding(100),
left: SizeConfig.getPadding(40),
child: Container(
child: Text(
"เวลาทำการ",
style: TextStyle(fontSize: 18.0, color: Colors.white),
),
),
),
Positioned(
bottom: SizeConfig.getPadding(50),
left: SizeConfig.getPadding(40),
child: Container(
child: Text(
"จันทร์ - ศุกร์ 10:00 AM - 08:00 PM\nเสาร์ - อาทิตย์ 10:00 AM - 10:00 PM",
style: TextStyle(fontSize: 18.0, color: Colors.white),
),
),
),
],
),
);
}
}
......@@ -7,6 +7,7 @@ class ShopNearbyPlacesPage extends StatefulWidget {
@override
_ShopNearbyPlacesPageState createState() => _ShopNearbyPlacesPageState();
}
final List<String> entries = <String>['A', 'B', 'C'];
class _ShopNearbyPlacesPageState extends State<ShopNearbyPlacesPage> {
@override
......@@ -25,6 +26,7 @@ class _ShopNearbyPlacesPageState extends State<ShopNearbyPlacesPage> {
top: SizeConfig.getPadding(15),
bottom: SizeConfig.getPadding(10),
left: SizeConfig.getPadding(24),
right: SizeConfig.getPadding(24)
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
......@@ -36,9 +38,7 @@ class _ShopNearbyPlacesPageState extends State<ShopNearbyPlacesPage> {
fontSize: SizeConfig.getFontSize(14),
),
),
SizedBox(
width: SizeConfig.getWidth(175),
),
Spacer(),
Text(
'ดูทั้งหมด',
style: TextStyle(
......
......@@ -890,4 +890,5 @@ class _ShopListDetailState extends State<ShopListDetail> {
],
),
);
}}
\ No newline at end of file
}
}
import 'package:feelverapp/ui/nearme/near_me_detail.dart';
import 'package:feelverapp/ui/shop/shop.dart';
import 'package:feelverapp/ui/shop/shop_Nearby_places.dart';
import 'package:feelverapp/ui/shop/shop_reviews.dart';
import 'package:feelverapp/ui/shop/shop_service.dart';
import 'package:feelverapp/util/SizeConfig.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'dart:math';
class MainShop extends StatefulWidget {
MainShop({Key key, this.title}) : super(key: key);
final String title;
@override
_MainShopState createState() => new _MainShopState();
_MainShopState createState() => _MainShopState();
}
final List<String> entries = <String>['A', 'B', 'C'];
class _MainShopState extends State<MainShop> with SingleTickerProviderStateMixin /*<-- This is for the controllers*/ {
TabController _controller; // To control switching tabs
ScrollController _scrollViewController; // To control scrolling
class _MainShopState extends State<MainShop>
with SingleTickerProviderStateMixin {
TabController _controller;
List<String> items = [];
List<Color> colors = [Colors.red, Colors.green, Colors.yellow, Colors.purple, Colors.blue, Colors.amber, Colors.cyan, Colors.pink];
Random random = new Random();
Color getRandomColor() {
return colors.elementAt(random.nextInt(colors.length));
}
@override
void initState() {
// TODO: implement initState
super.initState();
_controller = new TabController(length: 4, vsync: this);
_controller.addListener(_handleTabSelection);
_scrollViewController =ScrollController();
}
void _handleTabSelection() {
setState(() {});
}
@override
void dispose() {
// TODO: implement dispose
_controller.dispose();
super.dispose();
_controller.dispose();
_scrollViewController.dispose();
}
void _handleTabSelection() {
setState(() {
});
}
@override
Widget build(BuildContext context) {
SizeConfig(context);
return new Scaffold(
appBar: new AppBar(
// Init the items
for (var i = 0; i < 100; i++) {
items.add('Item $i');
}
return Scaffold(
// backgroundColor: Colors.transparent,
body: NestedScrollView(
controller: _scrollViewController,
headerSliverBuilder: (BuildContext context, bool boxIsScrolled) {
return <Widget>[
SliverAppBar(
backgroundColor: Color.fromRGBO(106, 179, 170, 1),
leading: IconButton(
icon: Icon(Icons.arrow_back_ios, color: Colors.white),
onPressed: () => Navigator.of(context).pop(),
),
backgroundColor: Color.fromRGBO(106, 179, 170, 1),
title: new Text(
'Thai Body Balance',
style: TextStyle(color: Colors.white, fontSize: 25),
),
elevation: 0,
),
body: new ListView(
children: <Widget>[
// new Card(
// child: new ListTile(
// title: const Text('Some information'),
// ),
// ),
title: Center(child:Text("Thai Body Balance",style:TextStyle(
color:Colors.white,
fontSize: 25)),),
floating: true,
pinned: false,
snap: true,
bottom: new TabBar(
new Container(
padding: const EdgeInsets.only(bottom: 25, top: 15),
decoration: new BoxDecoration(
color: Color.fromRGBO(106, 179, 170, 1),
),
child: new TabBar(
indicatorColor: Colors.transparent,
indicatorColor:Colors.transparent,
controller: _controller,
tabs: [
new Tab(
......@@ -133,16 +145,15 @@ class _MainShopState extends State<MainShop>
],
),
),
new Container(
];
},
body: new Container(
height: double.maxFinite,
child: new TabBarView(
controller: _controller,
children: <Widget>[
Container(
color: Colors.deepPurpleAccent,
height: 50,
child:Shop()
// child: getlist(),
//width: 20,
),
......@@ -245,11 +256,13 @@ class _MainShopState extends State<MainShop>
],
),
),
Container(
// color: Colors.blue,
height: double.maxFinite,
Expanded(
child: Container(
// color: Colors.blue,
// height: double.maxFinite,
child: ShopServicePage(),
),
),
],
),
// child: getlist(),
......@@ -271,8 +284,8 @@ class _MainShopState extends State<MainShop>
],
),
),
],
),
);
}
}
\ No newline at end of file
......@@ -32,8 +32,9 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
margin: EdgeInsets.only(
right: SizeConfig.getPadding(16),
left: SizeConfig.getPadding(16),
top: SizeConfig.getPadding(20),
top: SizeConfig.getPadding(10),
bottom: SizeConfig.getPadding(10)),
child: SingleChildScrollView(
child: Row(
children: <Widget>[
Text(
......@@ -43,9 +44,7 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
fontSize: SizeConfig.getFontSize(14),
),
),
SizedBox(
width: SizeConfig.getWidth(145),
),
Spacer(),
Text(
'ดูทั้งหมด',
style: TextStyle(
......@@ -55,6 +54,7 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
),
],
),
),
);
}
......@@ -66,12 +66,17 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
top: SizeConfig.getPadding(20),
bottom: SizeConfig.getPadding(10)),
child: Container(
margin: EdgeInsets.only(right: 15, left: 15, bottom: 20, top: 20),
margin: EdgeInsets.only(
right: SizeConfig.getPadding(15),
left: SizeConfig.getPadding(15),
bottom: SizeConfig.getPadding(20),
top: SizeConfig.getPadding(20),
),
// color: Colors.blueGrey,
child: Column(
children: <Widget>[
Container(
// color: Colors.blueGrey,
// color: Colors.green,
child: Column(
children: <Widget>[
Row(
......@@ -120,9 +125,7 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
fontSize: SizeConfig.getFontSize(16),
color: Colors.black),
),
SizedBox(
width: SizeConfig.getWidth(165),
),
Spacer(),
RatingStar(
isRating: true,
rate: rate1,
......@@ -147,9 +150,7 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
fontSize: SizeConfig.getFontSize(16),
color: Colors.black),
),
SizedBox(
width: SizeConfig.getWidth(120),
),
Spacer(),
RatingStar(
isRating: true,
rate: rate1,
......@@ -174,9 +175,7 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
fontSize: SizeConfig.getFontSize(16),
color: Colors.black),
),
SizedBox(
width: SizeConfig.getWidth(125),
),
Spacer(),
RatingStar(
isRating: true,
rate: rate1,
......@@ -201,9 +200,7 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
fontSize: SizeConfig.getFontSize(16),
color: Colors.black),
),
SizedBox(
width: SizeConfig.getWidth(160),
),
Spacer(),
RatingStar(
isRating: true,
rate: rate1,
......@@ -232,8 +229,8 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
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',
child: Image.asset(
'assets/images/ic_userimg.png',
width: 55.0,
height: 55.0,
fit: BoxFit.cover,
......@@ -242,10 +239,14 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
SizedBox(
width: SizeConfig.getWidth(10),
),
Column(
Expanded(
child: Container(
// color: Colors.green,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Row(
SingleChildScrollView(
child: Row(
children: <Widget>[
Text(
'Rattaya Pratumkan',
......@@ -253,15 +254,21 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
fontSize: SizeConfig.getFontSize(20),
color: Colors.black),
),
SizedBox(
width: SizeConfig.getWidth(60),
),
Icon(Icons.more_vert),
Spacer(),
Container(
child: Icon(Icons.more_vert),
)
],
),
),
SizedBox(
height: SizeConfig.getHeight(5),
),
Container(
// color: Colors.blue,
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
RatingStar(
isRating: true,
rate: rate1,
......@@ -275,6 +282,11 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
),
],
),
),
],
),
),
),
],
),
),
......@@ -331,14 +343,20 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
),
],
),
SizedBox(height: SizeConfig.getHeight(10),),
SizedBox(
height: SizeConfig.getHeight(10),
),
],
),
),
Container(
color: Color(0xFFF2F2F2),
child: Padding(
padding: const EdgeInsets.only(left: 30,top: 20,bottom: 20,),
padding: const EdgeInsets.only(
left: 30,
top: 20,
bottom: 20,
),
child: Row(
children: <Widget>[
ClipRRect(
......@@ -368,33 +386,45 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
fontSize: SizeConfig.getFontSize(14),
color: Colors.black),
),
SizedBox(height: SizeConfig.getHeight(5),),
SizedBox(
height: SizeConfig.getHeight(5),
),
Text(
"03/16/2019 12:49",
style: TextStyle(
fontSize: SizeConfig.getFontSize(14),
color: Color(0xFF6AB3AA),),
color: Color(0xFF6AB3AA),
),
),
SizedBox(
height: SizeConfig.getHeight(9),
),
Row(
children: <Widget>[
Icon(
Icons.access_time,
color: Color(0xFFEEAFB7),
),
SizedBox(height: SizeConfig.getHeight(9),),
Row(children: <Widget>[
Icon(Icons.access_time,color: Color(0xFFEEAFB7),),
Text(' 150Min')
],)
],
)
],
),
],
),
),
),
SizedBox(height: SizeConfig.getHeight(30),),
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',
child: Image.asset(
'assets/images/ic_userimg.png',
width: 55.0,
height: 55.0,
fit: BoxFit.cover,
......@@ -403,10 +433,14 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
SizedBox(
width: SizeConfig.getWidth(10),
),
Column(
Expanded(
child: Container(
// color: Colors.green,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Row(
SingleChildScrollView(
child: Row(
children: <Widget>[
Text(
'Rattaya Pratumkan',
......@@ -414,15 +448,21 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
fontSize: SizeConfig.getFontSize(20),
color: Colors.black),
),
SizedBox(
width: SizeConfig.getWidth(60),
),
Icon(Icons.more_vert),
Spacer(),
Container(
child: Icon(Icons.more_vert),
)
],
),
),
SizedBox(
height: SizeConfig.getHeight(5),
),
Container(
// color: Colors.blue,
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
RatingStar(
isRating: true,
rate: rate1,
......@@ -436,6 +476,11 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
),
],
),
),
],
),
),
),
],
),
),
......@@ -492,14 +537,20 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
),
],
),
SizedBox(height: SizeConfig.getHeight(10),),
SizedBox(
height: SizeConfig.getHeight(10),
),
],
),
),
Container(
color: Color(0xFFF2F2F2),
child: Padding(
padding: const EdgeInsets.only(left: 30,top: 20,bottom: 20,),
padding: const EdgeInsets.only(
left: 30,
top: 20,
bottom: 20,
),
child: Row(
children: <Widget>[
ClipRRect(
......@@ -529,33 +580,45 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
fontSize: SizeConfig.getFontSize(14),
color: Colors.black),
),
SizedBox(height: SizeConfig.getHeight(5),),
SizedBox(
height: SizeConfig.getHeight(5),
),
Text(
"03/16/2019 12:49",
style: TextStyle(
fontSize: SizeConfig.getFontSize(14),
color: Color(0xFF6AB3AA),),
color: Color(0xFF6AB3AA),
),
),
SizedBox(
height: SizeConfig.getHeight(9),
),
Row(
children: <Widget>[
Icon(
Icons.access_time,
color: Color(0xFFEEAFB7),
),
SizedBox(height: SizeConfig.getHeight(9),),
Row(children: <Widget>[
Icon(Icons.access_time,color: Color(0xFFEEAFB7),),
Text(' 150Min')
],)
],
)
],
),
],
),
),
),
SizedBox(height: SizeConfig.getHeight(30),),
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',
child: Image.asset(
'assets/images/ic_userimg.png',
width: 55.0,
height: 55.0,
fit: BoxFit.cover,
......@@ -564,10 +627,14 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
SizedBox(
width: SizeConfig.getWidth(10),
),
Column(
Expanded(
child: Container(
// color: Colors.green,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Row(
SingleChildScrollView(
child: Row(
children: <Widget>[
Text(
'Rattaya Pratumkan',
......@@ -575,15 +642,21 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
fontSize: SizeConfig.getFontSize(20),
color: Colors.black),
),
SizedBox(
width: SizeConfig.getWidth(60),
),
Icon(Icons.more_vert),
Spacer(),
Container(
child: Icon(Icons.more_vert),
)
],
),
),
SizedBox(
height: SizeConfig.getHeight(5),
),
Container(
// color: Colors.blue,
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
RatingStar(
isRating: true,
rate: rate1,
......@@ -597,6 +670,11 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
),
],
),
),
],
),
),
),
],
),
),
......@@ -653,14 +731,20 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
),
],
),
SizedBox(height: SizeConfig.getHeight(10),),
SizedBox(
height: SizeConfig.getHeight(10),
),
],
),
),
Container(
color: Color(0xFFF2F2F2),
child: Padding(
padding: const EdgeInsets.only(left: 30,top: 20,bottom: 20,),
padding: const EdgeInsets.only(
left: 30,
top: 20,
bottom: 20,
),
child: Row(
children: <Widget>[
ClipRRect(
......@@ -690,18 +774,28 @@ class _ShopReviewsPageState extends State<ShopReviewsPage> {
fontSize: SizeConfig.getFontSize(14),
color: Colors.black),
),
SizedBox(height: SizeConfig.getHeight(5),),
SizedBox(
height: SizeConfig.getHeight(5),
),
Text(
"03/16/2019 12:49",
style: TextStyle(
fontSize: SizeConfig.getFontSize(14),
color: Color(0xFF6AB3AA),),
color: Color(0xFF6AB3AA),
),
),
SizedBox(
height: SizeConfig.getHeight(9),
),
Row(
children: <Widget>[
Icon(
Icons.access_time,
color: Color(0xFFEEAFB7),
),
SizedBox(height: SizeConfig.getHeight(9),),
Row(children: <Widget>[
Icon(Icons.access_time,color: Color(0xFFEEAFB7),),
Text(' 150Min')
],)
],
)
],
),
],
......
......@@ -14,7 +14,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
double rate4 = 0;
double rate5 = 0;
@override
Widget build(BuildContext context) {
SizeConfig(context);
......@@ -36,7 +35,7 @@ class _ShopServicePageState extends State<ShopServicePage> {
margin: EdgeInsets.only(
right: SizeConfig.getPadding(16),
left: SizeConfig.getPadding(16),
top: SizeConfig.getPadding(20),
top: SizeConfig.getPadding(10),
bottom: SizeConfig.getPadding(10)),
child: Container(
margin: EdgeInsets.only(right: 15, left: 15, bottom: 20, top: 20),
......@@ -63,7 +62,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
// color: Colors.yellow,
height: SizeConfig.getHeight(250),
child: Column(
children: <Widget>[
Container(
padding: EdgeInsets.all(10),
......@@ -170,12 +168,18 @@ class _ShopServicePageState extends State<ShopServicePage> {
),
],
),
SizedBox(height: SizeConfig.getHeight(5),),
SizedBox(
height: SizeConfig.getHeight(5),
),
Container(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
RatingStar(
isRating: true,
rate: rate1,
starSize: 20,
onChangeRate: (i){
onChangeRate: (i) {
setState(() {
rate1 = i;
print(i);
......@@ -185,7 +189,9 @@ class _ShopServicePageState extends State<ShopServicePage> {
],
),
),
],
),
),
],
),
),
......@@ -197,12 +203,13 @@ class _ShopServicePageState extends State<ShopServicePage> {
),
);
}
Widget Card2() {
return Card(
margin: EdgeInsets.only(
right: SizeConfig.getPadding(16),
left: SizeConfig.getPadding(16),
top: SizeConfig.getPadding(20),
top: SizeConfig.getPadding(10),
bottom: SizeConfig.getPadding(10)),
child: Container(
margin: EdgeInsets.only(right: 15, left: 15, bottom: 20, top: 20),
......@@ -229,7 +236,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
// color: Colors.yellow,
height: SizeConfig.getHeight(250),
child: Column(
children: <Widget>[
Container(
padding: EdgeInsets.all(10),
......@@ -336,12 +342,18 @@ class _ShopServicePageState extends State<ShopServicePage> {
),
],
),
SizedBox(height: SizeConfig.getHeight(5),),
SizedBox(
height: SizeConfig.getHeight(5),
),
Container(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
RatingStar(
isRating: true,
rate: rate2,
starSize: 20,
onChangeRate: (i){
onChangeRate: (i) {
setState(() {
rate2 = i;
print(i);
......@@ -351,7 +363,9 @@ class _ShopServicePageState extends State<ShopServicePage> {
],
),
),
],
),
),
],
),
),
......@@ -363,12 +377,13 @@ class _ShopServicePageState extends State<ShopServicePage> {
),
);
}
Widget Card3() {
return Card(
margin: EdgeInsets.only(
right: SizeConfig.getPadding(16),
left: SizeConfig.getPadding(16),
top: SizeConfig.getPadding(20),
top: SizeConfig.getPadding(10),
bottom: SizeConfig.getPadding(10)),
child: Container(
margin: EdgeInsets.only(right: 15, left: 15, bottom: 20, top: 20),
......@@ -395,7 +410,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
// color: Colors.yellow,
height: SizeConfig.getHeight(250),
child: Column(
children: <Widget>[
Container(
padding: EdgeInsets.all(10),
......@@ -502,12 +516,18 @@ class _ShopServicePageState extends State<ShopServicePage> {
),
],
),
SizedBox(height: SizeConfig.getHeight(5),),
SizedBox(
height: SizeConfig.getHeight(5),
),
Container(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
RatingStar(
isRating: true,
rate: rate3,
starSize: 20,
onChangeRate: (i){
onChangeRate: (i) {
setState(() {
rate3 = i;
print(i);
......@@ -517,7 +537,9 @@ class _ShopServicePageState extends State<ShopServicePage> {
],
),
),
],
),
),
],
),
),
......@@ -529,12 +551,13 @@ class _ShopServicePageState extends State<ShopServicePage> {
),
);
}
Widget Card4() {
return Card(
margin: EdgeInsets.only(
right: SizeConfig.getPadding(16),
left: SizeConfig.getPadding(16),
top: SizeConfig.getPadding(20),
top: SizeConfig.getPadding(10),
bottom: SizeConfig.getPadding(10)),
child: Container(
margin: EdgeInsets.only(right: 15, left: 15, bottom: 20, top: 20),
......@@ -561,7 +584,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
// color: Colors.yellow,
height: SizeConfig.getHeight(250),
child: Column(
children: <Widget>[
Container(
padding: EdgeInsets.all(10),
......@@ -668,12 +690,18 @@ class _ShopServicePageState extends State<ShopServicePage> {
),
],
),
SizedBox(height: SizeConfig.getHeight(5),),
SizedBox(
height: SizeConfig.getHeight(5),
),
Container(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
RatingStar(
isRating: true,
rate: rate4,
starSize: 20,
onChangeRate: (i){
onChangeRate: (i) {
setState(() {
rate4 = i;
print(i);
......@@ -683,7 +711,9 @@ class _ShopServicePageState extends State<ShopServicePage> {
],
),
),
],
),
),
],
),
),
......@@ -695,12 +725,13 @@ class _ShopServicePageState extends State<ShopServicePage> {
),
);
}
Widget Card5() {
return Card(
margin: EdgeInsets.only(
right: SizeConfig.getPadding(16),
left: SizeConfig.getPadding(16),
top: SizeConfig.getPadding(20),
top: SizeConfig.getPadding(10),
bottom: SizeConfig.getPadding(10)),
child: Container(
margin: EdgeInsets.only(right: 15, left: 15, bottom: 20, top: 20),
......@@ -727,7 +758,6 @@ class _ShopServicePageState extends State<ShopServicePage> {
// color: Colors.yellow,
height: SizeConfig.getHeight(250),
child: Column(
children: <Widget>[
Container(
padding: EdgeInsets.all(10),
......@@ -834,12 +864,18 @@ class _ShopServicePageState extends State<ShopServicePage> {
),
],
),
SizedBox(height: SizeConfig.getHeight(5),),
SizedBox(
height: SizeConfig.getHeight(5),
),
Container(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
RatingStar(
isRating: true,
rate: rate5,
starSize: 20,
onChangeRate: (i){
onChangeRate: (i) {
setState(() {
rate5 = i;
print(i);
......@@ -849,7 +885,9 @@ class _ShopServicePageState extends State<ShopServicePage> {
],
),
),
],
),
),
],
),
),
......@@ -861,5 +899,4 @@ class _ShopServicePageState extends State<ShopServicePage> {
),
);
}
}
......@@ -7,42 +7,42 @@ packages:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.13"
version: "2.0.11"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.0"
version: "1.5.2"
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.1"
version: "2.4.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "1.0.5"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.3"
version: "1.1.2"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.14.12"
version: "1.14.11"
convert:
dependency: transitive
description:
......@@ -56,7 +56,7 @@ packages:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
version: "2.1.3"
cupertino_icons:
dependency: "direct main"
description:
......@@ -87,7 +87,7 @@ packages:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.12"
version: "2.1.4"
matcher:
dependency: transitive
description:
......@@ -109,6 +109,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.4"
pedantic:
dependency: transitive
description:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0+1"
petitparser:
dependency: transitive
description:
......@@ -122,7 +129,7 @@ packages:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
version: "2.0.5"
sky_engine:
dependency: transitive
description: flutter
......@@ -134,7 +141,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.0"
version: "1.5.5"
stack_trace:
dependency: transitive
description:
......@@ -169,7 +176,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.15"
version: "0.2.11"
typed_data:
dependency: transitive
description:
......@@ -190,6 +197,6 @@ packages:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.6.1"
version: "3.5.0"
sdks:
dart: ">=2.6.0 <3.0.0"
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