update

parent 05be9c3c
...@@ -11,6 +11,7 @@ class Favorite extends StatefulWidget { ...@@ -11,6 +11,7 @@ class Favorite extends StatefulWidget {
class _FavoriteState extends State<Favorite> { class _FavoriteState extends State<Favorite> {
bool checkBoxValue = false; bool checkBoxValue = false;
int a = 1; int a = 1;
int b = 1;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
...@@ -38,10 +39,10 @@ class _FavoriteState extends State<Favorite> { ...@@ -38,10 +39,10 @@ class _FavoriteState extends State<Favorite> {
// ); // );
}, },
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: 150, left: SizeConfig.getPadding(85),
right: 150, right: SizeConfig.getPadding(85),
top: 15, top: SizeConfig.getPadding(15),
bottom: 15, bottom: SizeConfig.getPadding(15),
), ),
color: Color(0xFF3694A3), color: Color(0xFF3694A3),
child: Text( child: Text(
...@@ -156,7 +157,11 @@ class _FavoriteState extends State<Favorite> { ...@@ -156,7 +157,11 @@ class _FavoriteState extends State<Favorite> {
Container( Container(
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Image.asset('assets/images/Thai massage.png'), Image.asset(
'assets/images/no-image.png',
height: SizeConfig.getHeight(80),
width: SizeConfig.getWidth(80),
),
Padding( Padding(
padding: const EdgeInsets.only(left: 8), padding: const EdgeInsets.only(left: 8),
child: Container( child: Container(
...@@ -206,8 +211,8 @@ class _FavoriteState extends State<Favorite> { ...@@ -206,8 +211,8 @@ class _FavoriteState extends State<Favorite> {
children: <Widget>[ children: <Widget>[
Image.asset( Image.asset(
'assets/images/clock.png', 'assets/images/clock.png',
height: 20, height: SizeConfig.getHeight(20),
width: 20, width: SizeConfig.getWidth(20),
), ),
Text( Text(
' 90 นาที', ' 90 นาที',
...@@ -233,6 +238,9 @@ class _FavoriteState extends State<Favorite> { ...@@ -233,6 +238,9 @@ class _FavoriteState extends State<Favorite> {
), ),
], ],
), ),
SizedBox(
height: SizeConfig.getHeight(10),
),
Row( Row(
children: <Widget>[ children: <Widget>[
Container( Container(
...@@ -242,15 +250,16 @@ class _FavoriteState extends State<Favorite> { ...@@ -242,15 +250,16 @@ class _FavoriteState extends State<Favorite> {
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
SizedBox( SizedBox(
width: 20.0, width: SizeConfig.getPadding(20),
height: 20.0, height:
SizeConfig.getPadding(20),
child: RaisedButton( child: RaisedButton(
child: Text('-'), child: Text('-'),
padding: padding:
EdgeInsets.only(right: 0), EdgeInsets.only(right: 0),
onPressed: () { onPressed: () {
setState(() { setState(() {
a=a-1; a = a - 1;
}); });
}, },
), ),
...@@ -258,17 +267,27 @@ class _FavoriteState extends State<Favorite> { ...@@ -258,17 +267,27 @@ class _FavoriteState extends State<Favorite> {
Padding( Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.only(
right: 8, left: 8), right: 8, left: 8),
child: Text('$a'), child: Text(
'$a',
style: TextStyle(
fontSize:
SizeConfig.getFontSize(
12),
),
),
), ),
SizedBox( SizedBox(
width: 20.0, width: SizeConfig.getPadding(20),
height: 20.0, height:
SizeConfig.getPadding(20),
child: RaisedButton( child: RaisedButton(
child: Text('+'), child: Text('+'),
padding: padding:
EdgeInsets.only(right: 0), EdgeInsets.only(right: 0),
onPressed: () { onPressed: () {
a=a+1; setState(() {
a = a + 1;
});
}, },
), ),
), ),
...@@ -306,7 +325,11 @@ class _FavoriteState extends State<Favorite> { ...@@ -306,7 +325,11 @@ class _FavoriteState extends State<Favorite> {
Container( Container(
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Image.asset('assets/images/Thai massage.png'), Image.asset(
'assets/images/no-image.png',
height: SizeConfig.getHeight(80),
width: SizeConfig.getWidth(80),
),
Padding( Padding(
padding: const EdgeInsets.only(left: 8), padding: const EdgeInsets.only(left: 8),
child: Container( child: Container(
...@@ -383,6 +406,9 @@ class _FavoriteState extends State<Favorite> { ...@@ -383,6 +406,9 @@ class _FavoriteState extends State<Favorite> {
), ),
], ],
), ),
SizedBox(
height: SizeConfig.getHeight(10),
),
Row( Row(
children: <Widget>[ children: <Widget>[
Container( Container(
...@@ -392,28 +418,36 @@ class _FavoriteState extends State<Favorite> { ...@@ -392,28 +418,36 @@ class _FavoriteState extends State<Favorite> {
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
SizedBox( SizedBox(
width: 20.0, width: SizeConfig.getPadding(20),
height: 20.0, height: SizeConfig.getPadding(20),
child: RaisedButton( child: RaisedButton(
child: Text('-'), child: Text('-'),
padding: padding:
EdgeInsets.only(right: 0), EdgeInsets.only(right: 0),
onPressed: () {}, onPressed: () {
setState(() {
b = b - 1;
});
},
), ),
), ),
Padding( Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.only(
right: 8, left: 8), right: 8, left: 8),
child: Text('1'), child: Text('$b'),
), ),
SizedBox( SizedBox(
width: 20.0, width: SizeConfig.getPadding(20),
height: 20.0, height: SizeConfig.getPadding(20),
child: RaisedButton( child: RaisedButton(
child: Text('+'), child: Text('+'),
padding: padding:
EdgeInsets.only(right: 0), EdgeInsets.only(right: 0),
onPressed: () {}, onPressed: () {
setState(() {
b = b + 1;
});
},
), ),
), ),
], ],
......
...@@ -154,7 +154,12 @@ class _PaymentdetailState extends State<Paymentdetail> { ...@@ -154,7 +154,12 @@ class _PaymentdetailState extends State<Paymentdetail> {
Container( Container(
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Image.asset('assets/images/Thai massage.png'), Image.asset(
'assets/images/no-image.png',
height: SizeConfig.getPadding(80),
width: SizeConfig.getPadding(80),
fit: BoxFit.cover,
),
Padding( Padding(
padding: const EdgeInsets.only(left: 8), padding: const EdgeInsets.only(left: 8),
child: Container( child: Container(
...@@ -187,7 +192,7 @@ class _PaymentdetailState extends State<Paymentdetail> { ...@@ -187,7 +192,7 @@ class _PaymentdetailState extends State<Paymentdetail> {
Row( Row(
children: <Widget>[ children: <Widget>[
Text( Text(
'฿1,000.00', '฿1,200.00',
style: TextStyle( style: TextStyle(
fontSize: SizeConfig.getFontSize(20), fontSize: SizeConfig.getFontSize(20),
color: Color(0xFFFD2956), color: Color(0xFFFD2956),
...@@ -223,7 +228,12 @@ class _PaymentdetailState extends State<Paymentdetail> { ...@@ -223,7 +228,12 @@ class _PaymentdetailState extends State<Paymentdetail> {
Container( Container(
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Image.asset('assets/images/Thai massage.png'), Image.asset(
'assets/images/no-image.png',
height: SizeConfig.getPadding(80),
width: SizeConfig.getPadding(80),
fit: BoxFit.cover,
),
Padding( Padding(
padding: const EdgeInsets.only(left: 8), padding: const EdgeInsets.only(left: 8),
child: Container( child: Container(
......
...@@ -11,7 +11,6 @@ class Payment extends StatefulWidget { ...@@ -11,7 +11,6 @@ class Payment extends StatefulWidget {
} }
class _PaymentState extends State<Payment> { class _PaymentState extends State<Payment> {
int a = 1; int a = 1;
@override @override
...@@ -243,7 +242,12 @@ class _PaymentState extends State<Payment> { ...@@ -243,7 +242,12 @@ class _PaymentState extends State<Payment> {
Container( Container(
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Image.asset('assets/images/Thai massage.png'), Image.asset(
'assets/images/no-image.png',
height: SizeConfig.getPadding(80),
width: SizeConfig.getPadding(80),
fit: BoxFit.cover,
),
Padding( Padding(
padding: const EdgeInsets.only(left: 8), padding: const EdgeInsets.only(left: 8),
child: Container( child: Container(
...@@ -276,7 +280,7 @@ class _PaymentState extends State<Payment> { ...@@ -276,7 +280,7 @@ class _PaymentState extends State<Payment> {
Row( Row(
children: <Widget>[ children: <Widget>[
Text( Text(
'฿1,000.00', '฿1,200.00',
style: TextStyle( style: TextStyle(
fontSize: SizeConfig.getFontSize(20), fontSize: SizeConfig.getFontSize(20),
color: Color(0xFFFD2956), color: Color(0xFFFD2956),
...@@ -312,7 +316,12 @@ class _PaymentState extends State<Payment> { ...@@ -312,7 +316,12 @@ class _PaymentState extends State<Payment> {
Container( Container(
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Image.asset('assets/images/Thai massage.png'), Image.asset(
'assets/images/no-image.png',
height: SizeConfig.getPadding(80),
width: SizeConfig.getPadding(80),
fit: BoxFit.cover,
),
Padding( Padding(
padding: const EdgeInsets.only(left: 8), padding: const EdgeInsets.only(left: 8),
child: Container( child: Container(
...@@ -320,7 +329,7 @@ class _PaymentState extends State<Payment> { ...@@ -320,7 +329,7 @@ class _PaymentState extends State<Payment> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Text( Text(
'Ivory Relax and Spa', 'Sunshine Spa & Massage',
style: TextStyle( style: TextStyle(
fontSize: SizeConfig.getFontSize(16), fontSize: SizeConfig.getFontSize(16),
fontFamily: "SF_Pro_Text", fontFamily: "SF_Pro_Text",
...@@ -332,7 +341,7 @@ class _PaymentState extends State<Payment> { ...@@ -332,7 +341,7 @@ class _PaymentState extends State<Payment> {
height: SizeConfig.getHeight(12), height: SizeConfig.getHeight(12),
), ),
Text( Text(
'นวดแผนไทย', 'Footology',
style: TextStyle( style: TextStyle(
fontSize: SizeConfig.getFontSize(16), fontSize: SizeConfig.getFontSize(16),
fontFamily: "SF_Pro_Text", fontFamily: "SF_Pro_Text",
...@@ -389,9 +398,9 @@ class _PaymentState extends State<Payment> { ...@@ -389,9 +398,9 @@ class _PaymentState extends State<Payment> {
Row( Row(
children: <Widget>[ children: <Widget>[
Image.asset( Image.asset(
'assets/images/ic_credit.png', 'assets/images/no-image.png',
height: 50, height: SizeConfig.getPadding(50),
width: 50, width: SizeConfig.getPadding(50),
), ),
Text( Text(
'บัตรเครดิต/บัตรเดบิต', 'บัตรเครดิต/บัตรเดบิต',
...@@ -412,9 +421,9 @@ class _PaymentState extends State<Payment> { ...@@ -412,9 +421,9 @@ class _PaymentState extends State<Payment> {
Row( Row(
children: <Widget>[ children: <Widget>[
Image.asset( Image.asset(
'assets/images/ic_Allpay.png', 'assets/images/no-image.png',
height: 50, height: SizeConfig.getPadding(50),
width: 50, width: SizeConfig.getPadding(50),
), ),
Text( Text(
'All Pay', 'All Pay',
...@@ -435,9 +444,9 @@ class _PaymentState extends State<Payment> { ...@@ -435,9 +444,9 @@ class _PaymentState extends State<Payment> {
Row( Row(
children: <Widget>[ children: <Widget>[
Image.asset( Image.asset(
'assets/images/ic_QFpay.png', 'assets/images/no-image.png',
height: 50, height: SizeConfig.getPadding(50),
width: 50, width: SizeConfig.getPadding(50),
), ),
Text( Text(
'QF Pay', 'QF Pay',
......
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