Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
feelver
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2F-ART
feelver
Commits
633981e4
Commit
633981e4
authored
Aug 21, 2020
by
Mobile : Jetrin Phuekkaew (N'new)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update shop detail
parent
04764f68
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
121 additions
and
2 deletions
+121
-2
lib/model/shoplistdetail/shoplistdetail_Model.dart
+93
-2
lib/ui/shop/shop_list_detail.dart
+0
-0
lib/ui/shop/shoplistdetail_presenter.dart
+11
-0
pubspec.lock
+14
-0
pubspec.yaml
+3
-0
No files found.
lib/model/shoplistdetail/shoplistdetail_Model.dart
View file @
633981e4
class
shoplistdetailModel
{
class
shoplistdetailModel
{
List
<
Result
>
result
;
List
<
Result
>
result
;
shoplistdetailModel
({
this
.
result
});
shoplistdetailModel
({
this
.
result
});
...
@@ -51,7 +53,7 @@ class Result {
...
@@ -51,7 +53,7 @@ class Result {
List
<
Comment
>
comment
;
List
<
Comment
>
comment
;
List
<
dynamic
>
commentReview
;
List
<
dynamic
>
commentReview
;
List
<
OpenHour
>
openHour
;
List
<
OpenHour
>
openHour
;
List
<
dynamic
>
image
;
List
<
Image2
>
image
;
Ratings
ratings
;
Ratings
ratings
;
Result
({
this
.
id
,
this
.
storeCode
,
this
.
storeName
,
this
.
storeCover
,
this
.
displayCover
,
this
.
isActive
,
this
.
storeOrder
,
this
.
customerGroupId
,
this
.
vendorId
,
this
.
createdAt
,
this
.
updatedAt
,
this
.
location
,
this
.
email
,
this
.
phone
,
this
.
mobile
,
this
.
address
,
this
.
city
,
this
.
country
,
this
.
zipCode
,
this
.
website
,
this
.
allowRoute
,
this
.
excerpt
,
this
.
detail
,
this
.
storeLogo
,
this
.
isFacilities
,
this
.
distanceWithLocation
,
this
.
star
,
this
.
storeProduct
,
this
.
comment
,
this
.
commentReview
,
this
.
openHour
,
this
.
image
,
this
.
ratings
});
Result
({
this
.
id
,
this
.
storeCode
,
this
.
storeName
,
this
.
storeCover
,
this
.
displayCover
,
this
.
isActive
,
this
.
storeOrder
,
this
.
customerGroupId
,
this
.
vendorId
,
this
.
createdAt
,
this
.
updatedAt
,
this
.
location
,
this
.
email
,
this
.
phone
,
this
.
mobile
,
this
.
address
,
this
.
city
,
this
.
country
,
this
.
zipCode
,
this
.
website
,
this
.
allowRoute
,
this
.
excerpt
,
this
.
detail
,
this
.
storeLogo
,
this
.
isFacilities
,
this
.
distanceWithLocation
,
this
.
star
,
this
.
storeProduct
,
this
.
comment
,
this
.
commentReview
,
this
.
openHour
,
this
.
image
,
this
.
ratings
});
...
@@ -586,6 +588,37 @@ class InfoCustomer {
...
@@ -586,6 +588,37 @@ class InfoCustomer {
return
data
;
return
data
;
}
}
}
}
class
Image
{
int
id
;
String
name
;
String
code
;
String
dayName
;
String
open
;
String
closed
;
String
image
;
int
vendorId
;
int
storeId
;
dynamic
createdAt
;
dynamic
updatedAt
;
Image
({
this
.
id
,
this
.
name
,
this
.
code
,
this
.
dayName
,
this
.
open
,
this
.
closed
,
this
.
image
,
this
.
vendorId
,
this
.
storeId
,
this
.
createdAt
,
this
.
updatedAt
});
Image
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
image
=
json
[
'image'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'image'
]
=
this
.
image
;
return
data
;
}
}
class
OpenHour
{
class
OpenHour
{
int
id
;
int
id
;
...
@@ -693,6 +726,62 @@ class Ratings {
...
@@ -693,6 +726,62 @@ class Ratings {
}
}
}
}
class
Image2
{
int
id
;
String
image
;
String
title
;
String
altText
;
String
detail
;
String
status
;
int
vendorId
;
Null
createdAt
;
Null
updatedAt
;
String
imageTb
;
int
tbId
;
Image2
(
{
this
.
id
,
this
.
image
,
this
.
title
,
this
.
altText
,
this
.
detail
,
this
.
status
,
this
.
vendorId
,
this
.
createdAt
,
this
.
updatedAt
,
this
.
imageTb
,
this
.
tbId
});
Image2
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
id
=
json
[
'id'
];
image
=
json
[
'image'
];
title
=
json
[
'title'
];
altText
=
json
[
'alt_text'
];
detail
=
json
[
'detail'
];
status
=
json
[
'status'
];
vendorId
=
json
[
'vendor_id'
];
createdAt
=
json
[
'created_at'
];
updatedAt
=
json
[
'updated_at'
];
imageTb
=
json
[
'image_tb'
];
tbId
=
json
[
'tb_id'
];
}
Map
<
String
,
dynamic
>
toJson
()
{
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'id'
]
=
this
.
id
;
data
[
'image'
]
=
this
.
image
;
data
[
'title'
]
=
this
.
title
;
data
[
'alt_text'
]
=
this
.
altText
;
data
[
'detail'
]
=
this
.
detail
;
data
[
'status'
]
=
this
.
status
;
data
[
'vendor_id'
]
=
this
.
vendorId
;
data
[
'created_at'
]
=
this
.
createdAt
;
data
[
'updated_at'
]
=
this
.
updatedAt
;
data
[
'image_tb'
]
=
this
.
imageTb
;
data
[
'tb_id'
]
=
this
.
tbId
;
return
data
;
}
}
class
RatingScore
{
class
RatingScore
{
int
id
;
int
id
;
int
ratingId
;
int
ratingId
;
...
@@ -722,4 +811,6 @@ class RatingScore {
...
@@ -722,4 +811,6 @@ class RatingScore {
data
[
'customer_id'
]
=
this
.
customerId
;
data
[
'customer_id'
]
=
this
.
customerId
;
return
data
;
return
data
;
}
}
}
}
lib/ui/shop/shop_list_detail.dart
View file @
633981e4
This diff is collapsed.
Click to expand it.
lib/ui/shop/shoplistdetail_presenter.dart
View file @
633981e4
...
@@ -4,6 +4,7 @@ import 'package:feelverapp/service/api.dart';
...
@@ -4,6 +4,7 @@ import 'package:feelverapp/service/api.dart';
import
'package:feelverapp/service/base_presenter.dart'
;
import
'package:feelverapp/service/base_presenter.dart'
;
import
'package:feelverapp/ui/shop/shop_list_detail.dart'
;
import
'package:feelverapp/ui/shop/shop_list_detail.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:url_launcher/url_launcher.dart'
;
class
ShoplistdetailPresenter
extends
BasePresenter
<
ShopListDetail
>{
class
ShoplistdetailPresenter
extends
BasePresenter
<
ShopListDetail
>{
...
@@ -32,4 +33,13 @@ class ShoplistdetailPresenter extends BasePresenter<ShopListDetail>{
...
@@ -32,4 +33,13 @@ class ShoplistdetailPresenter extends BasePresenter<ShopListDetail>{
print
(
'res Fail'
);
print
(
'res Fail'
);
}
}
}
}
gotoDirection
(
String
lat
,
String
lng
){
print
(
"debug"
);
print
(
lat
);
print
(
lng
);
launch
(
'https://www.google.com/maps/dir/?api=1&destination=
${lat}
,
${lng}
'
);
}
}
}
\ No newline at end of file
pubspec.lock
View file @
633981e4
...
@@ -15,6 +15,20 @@ packages:
...
@@ -15,6 +15,20 @@ packages:
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.0.0"
version: "2.0.0"
carousel_pro:
dependency: "direct main"
description:
name: carousel_pro
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
carousel_slider:
dependency: "direct main"
description:
name: carousel_slider
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.1"
characters:
characters:
dependency: transitive
dependency: transitive
description:
description:
...
...
pubspec.yaml
View file @
633981e4
...
@@ -25,6 +25,7 @@ dependencies:
...
@@ -25,6 +25,7 @@ dependencies:
cupertino_icons
:
^0.1.2
cupertino_icons
:
^0.1.2
flutter_screenutil
:
^1.0.2
flutter_screenutil
:
^1.0.2
http
:
^0.12.0+4
http
:
^0.12.0+4
carousel_pro
:
^1.0.0
image_cropper
:
^1.2.3
image_cropper
:
^1.2.3
image_picker
:
^0.6.7+4
image_picker
:
^0.6.7+4
json_annotation
:
^3.0.1
json_annotation
:
^3.0.1
...
@@ -35,6 +36,8 @@ dependencies:
...
@@ -35,6 +36,8 @@ dependencies:
url_launcher
:
^5.4.2
url_launcher
:
^5.4.2
date_format
:
^1.0.8
date_format
:
^1.0.8
flutter_datetime_picker
:
^1.4.0
flutter_datetime_picker
:
^1.4.0
carousel_slider
:
^2.2.1
dev_dependencies
:
dev_dependencies
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment