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
486f6e83
Commit
486f6e83
authored
Aug 20, 2020
by
Mobile : Jetrin Phuekkaew (N'new)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update shop detail
parent
18c95738
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
8 deletions
+20
-8
lib/main.dart
+2
-1
lib/service/api.dart
+1
-1
lib/ui/home/home.dart
+0
-0
lib/ui/nearme/near_me_list.dart
+2
-1
lib/ui/shop/shop_Nearby_places.dart
+2
-1
lib/ui/shop/shop_list_detail.dart
+0
-0
lib/ui/shop/shop_service.dart
+1
-1
lib/ui/shop/shoplistdetail_presenter.dart
+12
-3
No files found.
lib/main.dart
View file @
486f6e83
...
...
@@ -8,6 +8,7 @@ import 'package:feelverapp/ui/login/login.dart';
import
'package:feelverapp/ui/my_reviews/my_reviews_page.dart'
;
import
'package:feelverapp/ui/review_shop/review_shop_page.dart'
;
import
'package:feelverapp/ui/shop/shop_list.dart'
;
import
'package:feelverapp/ui/shop/shop_list_detail.dart'
;
import
'package:feelverapp/ui/shop/shop_main.dart'
;
import
'package:feelverapp/ui/splashscreen/splash_screen_page.dart'
;
...
...
@@ -32,7 +33,7 @@ class MyApp extends StatelessWidget {
),
home:
MainShop
()
home:
SplashScreenPage
()
...
...
lib/service/api.dart
View file @
486f6e83
...
...
@@ -29,7 +29,7 @@ class Api<T> {
"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvYmFja2VuZC11YXQuZmVlbHZlci5jb21cL2FwaVwvbG9naW4iLCJpYXQiOjE1OTYxMDAzNTgsImV4cCI6MTYwMzMwMDM1OCwibmJmIjoxNTk2MTAwMzU4LCJqdGkiOiJ2YjA2S0FHR1JtZDFseEw1Iiwic3ViIjozNzMsInBydiI6Ijg3ZTBhZjFlZjlmZDE1ODEyZmRlYzk3MTUzYTE0ZTBiMDQ3NTQ2YWEifQ.UkY70AshvW5O4M63XY_Iv2IPBohSUUwnRF1oi46p2zs"
,
};
static
final
String
baseApi
=
"https://backend-uat.feelver.com/api"
;
static
final
String
baseApi
=
"https://backend-uat.feelver.com/api
/storage/
"
;
Future
<
Response
<
T
>>
favorite
(
Object
body
)
async
{
var
_model
;
var
_fail
;
...
...
lib/ui/home/home.dart
View file @
486f6e83
This diff is collapsed.
Click to expand it.
lib/ui/nearme/near_me_list.dart
View file @
486f6e83
import
'package:feelverapp/service/api.dart'
;
import
'package:feelverapp/ui/nearme/near_me_detail.dart'
;
import
'package:feelverapp/ui/nearme/near_me_list_presenter.dart'
;
import
'package:feelverapp/util/SizeConfig.dart'
;
...
...
@@ -217,7 +218,7 @@ class _NearmeListState extends State<NearmeList> with TickerProviderStateMixin {
),
Expanded
(
child:
Image
.
network
(
'https://backend.feelver.com/storage/'
+
img
,
Api
.
baseApi
+
img
,
// width: SizeConfig.getWidth(50),
height:
SizeConfig
.
getHeight
(
160
),
fit:
BoxFit
.
fitHeight
,
...
...
lib/ui/shop/shop_Nearby_places.dart
View file @
486f6e83
import
'package:feelverapp/service/api.dart'
;
import
'package:feelverapp/ui/nearme/near_me_detail.dart'
;
import
'package:feelverapp/ui/nearme/near_me_list_presenter.dart'
;
import
'package:feelverapp/ui/shop/shop_main.dart'
;
...
...
@@ -234,7 +235,7 @@ class _ShopNearbyPlacesPageState extends State<ShopNearbyPlacesPage>with TickerP
fit:
BoxFit
.
cover
,
)
:
Image
.
network
(
'https://backend.feelver.com/storage/'
+
img
,
Api
.
baseApi
+
img
,
fit:
BoxFit
.
cover
,
),),
),
...
...
lib/ui/shop/shop_list_detail.dart
View file @
486f6e83
This diff is collapsed.
Click to expand it.
lib/ui/shop/shop_service.dart
View file @
486f6e83
...
...
@@ -76,7 +76,7 @@ class _ShopServicePageState extends State<ShopServicePage>
fit:
BoxFit
.
cover
,
)
:
Image
.
network
(
'https://backend.feelver.com/storage/'
+
image
,
Api
.
baseApi
+
image
,
fit:
BoxFit
.
cover
,
),),
),
...
...
lib/ui/shop/shoplistdetail_presenter.dart
View file @
486f6e83
import
'package:feelverapp/model/shoplistdetail/shoplistdetail_Model.dart'
;
import
'package:feelverapp/service/Loading.dart'
;
import
'package:feelverapp/service/api.dart'
;
import
'package:feelverapp/service/base_presenter.dart'
;
import
'package:feelverapp/ui/shop/shop_list_detail.dart'
;
...
...
@@ -8,16 +9,24 @@ import 'package:flutter/material.dart';
class
ShoplistdetailPresenter
extends
BasePresenter
<
ShopListDetail
>{
Api
_api
;
final
formkey
=
GlobalKey
<
FormState
>();
shoplistdetailModel
model
;
ShoplistdetailPresenter
(
State
<
ShopListDetail
>
state
)
:
super
(
state
);
Detai
()
async
{
Detai
(
String
id
)
async
{
_api
=
Api
<
shoplistdetailModel
>();
var
res
=
await
_api
.
shoplistDetail
({
"id"
:
"406"
,
"id"
:
id
,
});
if
(
res
.
fail
==
null
)
{
setState
(()
{
model
=
res
.
success
;
print
(
"complete"
);
});
print
(
'res Success'
);
}
else
{
print
(
'res Fail'
);
...
...
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