Commit 6982ef7b by Mobile : Ball (Apprentice)

Merge branch 'develop' of https://gitlab.2fellows.com/art/feelver into develop

# Conflicts:
#	lib/main.dart
parents 22f9b54e cebda42f
...@@ -32,7 +32,9 @@ class MyApp extends StatelessWidget { ...@@ -32,7 +32,9 @@ class MyApp extends StatelessWidget {
), ),
home: ReviewShopPage()
home: MainShop()
//home: EditProfile(), //home: EditProfile(),
......
class categoryModel { class categoryModel {
List<DATA> dATA; List<DATA> dATA;
categoryModel({this.dATA}); categoryModel({this.dATA});
categoryModel.fromJson(Map<String, dynamic> json) { categoryModel.fromJson(Map<String, dynamic> json) {
if (json['data'] != null) { if (json['DATA'] != null) {
dATA = new List<DATA>(); dATA = new List<DATA>();
json['DATA'].forEach((v) { json['DATA'].forEach((v) {
dATA.add(new DATA.fromJson(v)); dATA.add(new DATA.fromJson(v));
...@@ -16,7 +15,7 @@ class categoryModel { ...@@ -16,7 +15,7 @@ class categoryModel {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.dATA != null) { if (this.dATA != null) {
data['data'] = this.dATA.map((v) => v.toJson()).toList(); data['DATA'] = this.dATA.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
...@@ -41,56 +40,56 @@ class DATA { ...@@ -41,56 +40,56 @@ class DATA {
DATA( DATA(
{this.id, {this.id,
this.parentId, this.parentId,
this.name, this.name,
this.code, this.code,
this.displayName, this.displayName,
this.cover, this.cover,
this.detail, this.detail,
this.type, this.type,
this.status, this.status,
this.sortOrder, this.sortOrder,
this.storeId, this.storeId,
this.vendorId, this.vendorId,
this.createdAt, this.createdAt,
this.updatedAt, this.updatedAt,
this.visibility}); this.visibility});
DATA.fromJson(Map<String, dynamic> json) { DATA.fromJson(Map<String, dynamic> json) {
// id = json['id']; id = json['id'];
// parentId = json['parent_id']; parentId = json['parent_id'];
name = json['name']; name = json['name'];
// code = json['code']; code = json['code'];
// displayName = json['display_name']; displayName = json['display_name'];
// cover = json['cover']; cover = json['cover'];
// detail = json['detail']; detail = json['detail'];
// type = json['type']; type = json['type'];
// status = json['status']; status = json['status'];
// sortOrder = json['sort_order']; sortOrder = json['sort_order'];
// storeId = json['store_id']; storeId = json['store_id'];
// vendorId = json['vendor_id']; vendorId = json['vendor_id'];
// createdAt = json['created_at']; createdAt = json['created_at'];
// updatedAt = json['updated_at']; updatedAt = json['updated_at'];
// visibility = json['visibility']; visibility = json['visibility'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
// data['id'] = this.id; data['id'] = this.id;
// data['parent_id'] = this.parentId; data['parent_id'] = this.parentId;
data['name'] = this.name; data['name'] = this.name;
// data['code'] = this.code; data['code'] = this.code;
// data['display_name'] = this.displayName; data['display_name'] = this.displayName;
// data['cover'] = this.cover; data['cover'] = this.cover;
// data['detail'] = this.detail; data['detail'] = this.detail;
// data['type'] = this.type; data['type'] = this.type;
// data['status'] = this.status; data['status'] = this.status;
// data['sort_order'] = this.sortOrder; data['sort_order'] = this.sortOrder;
// data['store_id'] = this.storeId; data['store_id'] = this.storeId;
// data['vendor_id'] = this.vendorId; data['vendor_id'] = this.vendorId;
// data['created_at'] = this.createdAt; data['created_at'] = this.createdAt;
// data['updated_at'] = this.updatedAt; data['updated_at'] = this.updatedAt;
// data['visibility'] = this.visibility; data['visibility'] = this.visibility;
return data; return data;
} }
} }
...@@ -95,12 +95,12 @@ class Api<T> { ...@@ -95,12 +95,12 @@ class Api<T> {
var _model; var _model;
var _fail; var _fail;
var result; var result;
print("this is body " + body.toString()); // print("this is body " + body.toString());
// (body as Map)['lang'] = allTranslations.currentLanguage; // (body as Map)['lang'] = allTranslations.currentLanguage;
await _httpConnection( await _httpConnection(
"${this._baseApi}/customer/info", this._headerApi, body) "${this._baseApi}/customer/info", this._headerApi, body)
.then((response) { .then((response) {
print("ผลลัพ เท่ากับบบบ " + "${response.body}"); // print("ผลลัพ เท่ากับบบบ " + "${response.body}");
if (response.statusCode == 200) { if (response.statusCode == 200) {
_model = GetprofileModel.fromJson(json.decode(response.body)); _model = GetprofileModel.fromJson(json.decode(response.body));
} else { } else {
...@@ -224,10 +224,10 @@ class Api<T> { ...@@ -224,10 +224,10 @@ class Api<T> {
var _model; var _model;
var _fail; var _fail;
var result; var result;
print("Result test ");
await _httpConnection("${this._baseApi}/category", this._headerApi, body) await _httpConnection("${this._baseApi}/category", this._headerApi, body)
.then((response) { .then((response) {
print("ผลลัพท์ เท่ากับ55555 " "${response.body}"); print("ผลลัพท์ เท่ากับ " "${response.body}");
if (response.statusCode == 200) { if (response.statusCode == 200) {
// Array to Map Json // Array to Map Json
Map<String, dynamic> myData = arrayToJson(response.body); Map<String, dynamic> myData = arrayToJson(response.body);
......
...@@ -15,7 +15,7 @@ class _BookingFlowState extends State<BookingFlow> { ...@@ -15,7 +15,7 @@ class _BookingFlowState extends State<BookingFlow> {
body: _setupView(), body: _setupView(),
bottomNavigationBar: Container( bottomNavigationBar: Container(
height: SizeConfig.getHeight(100), height: SizeConfig.getHeight(100),
color: Color.fromRGBO(106, 179, 170, 1), color: Color.fromRGBO(69, 85, 79, 1),
child: Stack( child: Stack(
children: <Widget>[ children: <Widget>[
Positioned( Positioned(
......
...@@ -15,12 +15,12 @@ class _BookingFormState extends State<BookingForm> { ...@@ -15,12 +15,12 @@ class _BookingFormState extends State<BookingForm> {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: Text('จอง'), title: Text('จอง'),
backgroundColor: Color.fromRGBO(54, 148, 163, 1), backgroundColor: Color.fromRGBO(69, 85, 79, 1),
), ),
body: _setupView(), body: _setupView(),
bottomNavigationBar: Container( bottomNavigationBar: Container(
height: SizeConfig.getHeight(100), height: SizeConfig.getHeight(100),
color: Color.fromRGBO(106, 179, 170, 1), color: Color.fromRGBO(69, 85, 79, 1),
child: Stack( child: Stack(
children: <Widget>[ children: <Widget>[
Positioned( Positioned(
...@@ -103,7 +103,7 @@ class _BookingFormState extends State<BookingForm> { ...@@ -103,7 +103,7 @@ class _BookingFormState extends State<BookingForm> {
'ข้อมูลแพ็คเกจที่คุณจอง', 'ข้อมูลแพ็คเกจที่คุณจอง',
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: Color.fromRGBO(54, 148, 163, 1), color: Color.fromRGBO(69, 85, 79, 1),
fontSize: SizeConfig.getFontSize(14), fontSize: SizeConfig.getFontSize(14),
fontFamily: "SF_Pro_Text", fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w500), fontWeight: FontWeight.w500),
...@@ -573,7 +573,7 @@ class _BookingFormState extends State<BookingForm> { ...@@ -573,7 +573,7 @@ class _BookingFormState extends State<BookingForm> {
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
height: SizeConfig.getHeight(100), height: SizeConfig.getHeight(100),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color.fromRGBO(54, 148, 163, 1), color: Color.fromRGBO(69, 85, 79, 1),
), ),
child: Container( child: Container(
alignment: Alignment.topLeft, alignment: Alignment.topLeft,
......
...@@ -37,9 +37,9 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin { ...@@ -37,9 +37,9 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
// presenter.getid(); // presenter.getid();
presenter.getprofile(); presenter.getprofile();
//print("nenwenwenwew"+presenter.CatModel.dATA[0].cover,);
// presenter.getSearch();
presenter.getSearch();
} }
@override @override
......
...@@ -56,7 +56,7 @@ class HomePresenter extends BasePresenter<HomePage> { ...@@ -56,7 +56,7 @@ class HomePresenter extends BasePresenter<HomePage> {
"lang" : "all", "lang" : "all",
"access" : "portal", "access" : "portal",
}); });
print('$searchCtrl'); print('$searchCtrl');
if (res.fail == null) if (res.success.status) { if (res.fail == null) if (res.success.status) {
...@@ -64,7 +64,8 @@ print('$searchCtrl'); ...@@ -64,7 +64,8 @@ print('$searchCtrl');
searchhomeModel = res.success; searchhomeModel = res.success;
category_model = res.success; category_model = res.success;
}); });
}else{ }
else{
} }
...@@ -87,7 +88,7 @@ print('$searchCtrl'); ...@@ -87,7 +88,7 @@ print('$searchCtrl');
setState(() { setState(() {
getmodel = res.success; getmodel = res.success;
}); });
print("Hii" + getmodel.result[0].name); // print("Hii" + getmodel.result[0].name);
} else { } else {
Alert( Alert(
style: AlertStyle( style: AlertStyle(
......
...@@ -30,7 +30,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin { ...@@ -30,7 +30,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
backgroundColor: Color.fromRGBO(106, 179, 170, 1), backgroundColor: Color.fromRGBO(69, 85, 79, 1),
elevation: 0, elevation: 0,
centerTitle: true, centerTitle: true,
title: Text( title: Text(
...@@ -51,7 +51,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin { ...@@ -51,7 +51,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin {
children: <Widget>[ children: <Widget>[
Container( Container(
height: SizeConfig.getWidth(110), height: SizeConfig.getWidth(110),
color: Color.fromRGBO(106, 179, 170, 1), color: Color.fromRGBO(69, 85, 79, 1),
child: Container( child: Container(
padding: EdgeInsets.only(left: SizeConfig.getPadding(24)), padding: EdgeInsets.only(left: SizeConfig.getPadding(24)),
alignment: Alignment.topLeft, alignment: Alignment.topLeft,
...@@ -69,7 +69,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin { ...@@ -69,7 +69,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin {
fontFamily: "SF_Pro_Text", fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w500), fontWeight: FontWeight.w500),
), ),
backgroundColor: Color.fromRGBO(106, 179, 170, 1), backgroundColor: Color.fromRGBO(69, 85, 79, 1),
shape: StadiumBorder( shape: StadiumBorder(
side: BorderSide(color: Colors.white), side: BorderSide(color: Colors.white),
), ),
...@@ -89,7 +89,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin { ...@@ -89,7 +89,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin {
fontFamily: "SF_Pro_Text", fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w500), fontWeight: FontWeight.w500),
), ),
backgroundColor: Color.fromRGBO(106, 179, 170, 1), backgroundColor: Color.fromRGBO(69, 85, 79, 1),
shape: StadiumBorder( shape: StadiumBorder(
side: BorderSide(color: Colors.white), side: BorderSide(color: Colors.white),
), ),
...@@ -106,7 +106,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin { ...@@ -106,7 +106,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin {
fontFamily: "SF_Pro_Text", fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w500), fontWeight: FontWeight.w500),
), ),
backgroundColor: Color.fromRGBO(106, 179, 170, 1), backgroundColor: Color.fromRGBO(69, 85, 79, 1),
shape: StadiumBorder( shape: StadiumBorder(
side: BorderSide(color: Colors.white), side: BorderSide(color: Colors.white),
), ),
...@@ -123,7 +123,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin { ...@@ -123,7 +123,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin {
fontFamily: "SF_Pro_Text", fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w500), fontWeight: FontWeight.w500),
), ),
backgroundColor: Color.fromRGBO(106, 179, 170, 1), backgroundColor: Color.fromRGBO(69, 85, 79, 1),
shape: StadiumBorder( shape: StadiumBorder(
side: BorderSide(color: Colors.white), side: BorderSide(color: Colors.white),
), ),
...@@ -140,7 +140,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin { ...@@ -140,7 +140,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin {
fontFamily: "SF_Pro_Text", fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w500), fontWeight: FontWeight.w500),
), ),
backgroundColor: Color.fromRGBO(106, 179, 170, 1), backgroundColor: Color.fromRGBO(69, 85, 79, 1),
shape: StadiumBorder( shape: StadiumBorder(
side: BorderSide(color: Colors.white), side: BorderSide(color: Colors.white),
), ),
......
...@@ -19,7 +19,7 @@ class _ReserveDateTimeState extends State<ReserveDateTime> { ...@@ -19,7 +19,7 @@ class _ReserveDateTimeState extends State<ReserveDateTime> {
body: _setupView(), body: _setupView(),
bottomNavigationBar: Container( bottomNavigationBar: Container(
height: SizeConfig.getHeight(100), height: SizeConfig.getHeight(100),
color: Color.fromRGBO(106, 179, 170, 1), color: Color.fromRGBO(69, 85, 79, 1),
child: Stack( child: Stack(
children: <Widget>[ children: <Widget>[
Positioned( Positioned(
...@@ -125,7 +125,7 @@ class _ReserveDateTimeState extends State<ReserveDateTime> { ...@@ -125,7 +125,7 @@ class _ReserveDateTimeState extends State<ReserveDateTime> {
'คุณกำลังจอง', 'คุณกำลังจอง',
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: Color.fromRGBO(106, 179, 170, 1), color: Color.fromRGBO(69, 85, 79, 1),
fontSize: SizeConfig.getFontSize(14), fontSize: SizeConfig.getFontSize(14),
fontFamily: "SF_Pro_Text", fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w500), fontWeight: FontWeight.w500),
......
...@@ -17,7 +17,7 @@ class _ReserveListState extends State<ReserveList> { ...@@ -17,7 +17,7 @@ class _ReserveListState extends State<ReserveList> {
body: _setupView(), body: _setupView(),
bottomNavigationBar: Container( bottomNavigationBar: Container(
height: SizeConfig.getHeight(100), height: SizeConfig.getHeight(100),
color: Color.fromRGBO(106, 179, 170, 1), color: Color.fromRGBO(69, 85, 79, 1),
child: Stack( child: Stack(
children: <Widget>[ children: <Widget>[
Positioned( Positioned(
...@@ -123,7 +123,7 @@ class _ReserveListState extends State<ReserveList> { ...@@ -123,7 +123,7 @@ class _ReserveListState extends State<ReserveList> {
'คุณกำลังจอง', 'คุณกำลังจอง',
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: Color.fromRGBO(106, 179, 170, 1), color: Color.fromRGBO(69, 85, 79, 1),
fontSize: SizeConfig.getFontSize(14), fontSize: SizeConfig.getFontSize(14),
fontFamily: "SF_Pro_Text", fontFamily: "SF_Pro_Text",
fontWeight: FontWeight.w500), fontWeight: FontWeight.w500),
......
...@@ -151,9 +151,11 @@ class _MainShopState extends State<MainShop> with SingleTickerProviderStateMixi ...@@ -151,9 +151,11 @@ class _MainShopState extends State<MainShop> with SingleTickerProviderStateMixi
controller: _controller, controller: _controller,
children: <Widget>[ children: <Widget>[
Container( Container(
//service detail//////////////
child:Shop() child:Shop()
// child: getlist(),
//width: 20,
), ),
Column( Column(
......
# Generated by pub # Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile # See https://dart.dev/tools/pub/glossary#lockfile
packages: packages:
archive:
dependency: transitive
description:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.13"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.0"
async: async:
dependency: transitive dependency: transitive
description: description:
...@@ -78,6 +64,13 @@ packages: ...@@ -78,6 +64,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.8" version: "1.0.8"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
file: file:
dependency: transitive dependency: transitive
description: description:
...@@ -142,13 +135,6 @@ packages: ...@@ -142,13 +135,6 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.1.4" version: "3.1.4"
image:
dependency: transitive
description:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.12"
image_cropper: image_cropper:
dependency: "direct main" dependency: "direct main"
description: description:
...@@ -225,7 +211,7 @@ packages: ...@@ -225,7 +211,7 @@ packages:
name: path_provider_platform_interface name: path_provider_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.2" version: "1.0.3"
pedantic: pedantic:
dependency: transitive dependency: transitive
description: description:
...@@ -233,13 +219,6 @@ packages: ...@@ -233,13 +219,6 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.9.0" version: "1.9.0"
petitparser:
dependency: transitive
description:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.0"
platform: platform:
dependency: transitive dependency: transitive
description: description:
...@@ -275,13 +254,6 @@ packages: ...@@ -275,13 +254,6 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.4.4" version: "1.4.4"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
rflutter_alert: rflutter_alert:
dependency: "direct main" dependency: "direct main"
description: description:
...@@ -412,7 +384,7 @@ packages: ...@@ -412,7 +384,7 @@ packages:
name: url_launcher_web name: url_launcher_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.2" version: "0.1.2+1"
vector_math: vector_math:
dependency: transitive dependency: transitive
description: description:
...@@ -427,13 +399,6 @@ packages: ...@@ -427,13 +399,6 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.0" version: "0.1.0"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.6.1"
sdks: sdks:
dart: ">=2.9.0-14.0.dev <3.0.0" dart: ">=2.9.0-14.0.dev <3.0.0"
flutter: ">=1.12.13+hotfix.5 <2.0.0" flutter: ">=1.12.13+hotfix.5 <2.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