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
91eb10ce
Commit
91eb10ce
authored
Aug 27, 2020
by
Mobile : Art
Browse files
Options
Browse Files
Download
Plain Diff
update
parents
9fc19fb6
f97a4ff7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
10 deletions
+43
-10
lib/main.dart
+2
-0
lib/ui/favorite/favorite.dart
+15
-1
lib/ui/favorite/favorite_presenter.dart
+8
-5
lib/ui/menu/menu.dart
+0
-0
lib/ui/review_shop/review_shop_page.dart
+10
-4
pubspec.lock
+7
-0
pubspec.yaml
+1
-0
No files found.
lib/main.dart
View file @
91eb10ce
...
...
@@ -34,12 +34,14 @@ class MyApp extends StatelessWidget {
),
home:
SplashScreenPage
()
//home: EditProfile(),
);
...
...
lib/ui/favorite/favorite.dart
View file @
91eb10ce
...
...
@@ -61,7 +61,21 @@ class _FavoriteState extends State<Favorite> {
),
child:
Container
(
child:
presenter
.
favoriteModel
==
null
?
Container
()
?
Container
(
child:
Center
(
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
<
Widget
>[
SizedBox
(
child:
CircularProgressIndicator
(
valueColor:
new
AlwaysStoppedAnimation
<
Color
>(
Color
.
fromRGBO
(
69
,
85
,
79
,
1
),
),),
height:
30.0
,
width:
30.0
,
),]
))
)
:
ListView
.
builder
(
itemCount:
presenter
.
favoriteModel
.
wishListItem
.
length
,
itemBuilder:
(
context
,
i
)
{
...
...
lib/ui/favorite/favorite_presenter.dart
View file @
91eb10ce
import
'package:feelverapp/model/favorite/delete_favorite_Model.dart'
;
import
'package:feelverapp/model/favorite/favorite_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/favorite/favorite.dart'
;
...
...
@@ -14,16 +15,16 @@ class FavoritePresenter extends BasePresenter<Favorite> {
FavoritePresenter
(
State
<
Favorite
>
state
)
:
super
(
state
);
Favoriteitem
()
async
{
Favoriteitem
()
async
{
var
_id
=
await
AccountUtil
.
getID
();
print
(
_id
);
print
(
"555555555555"
);
_api
=
Api
<
FavoriteModel
>();
var
res
=
await
_api
.
favorite
({
"customer_id"
:
_id
,
});
if
(
res
.
fail
==
null
)
{
setState
(()
{
favoriteModel
=
res
.
success
;
...
...
@@ -34,11 +35,13 @@ class FavoritePresenter extends BasePresenter<Favorite> {
}
Deletefavoriteitem
(
String
id
)
async
{
LoadingView
(
state
.
context
).
show
();
_api
=
Api
<
DeletefavoriteModel
>();
var
res
=
await
_api
.
deletefavorite
({
"id"
:
id
,
});
LoadingView
(
state
.
context
).
hide
();
if
(
res
.
fail
==
null
)
{
setState
(()
{
deletefavoriteModel
=
res
.
success
;
...
...
lib/ui/menu/menu.dart
View file @
91eb10ce
This diff is collapsed.
Click to expand it.
lib/ui/review_shop/review_shop_page.dart
View file @
91eb10ce
...
...
@@ -70,6 +70,8 @@ class _ReviewShopPageState extends State<ReviewShopPage> {
print
(
presenter
.
reviewShopModel
.
result
[
0
].
comment
[
i
].
infoCustomer
.
name
);
return
list
(
presenter
.
reviewShopModel
.
result
[
0
].
comment
[
i
].
infoCustomer
.
name
,
presenter
.
reviewShopModel
.
result
[
0
].
comment
[
i
].
infoCustomer
.
image
,
presenter
.
reviewShopModel
.
result
[
0
].
comment
[
i
].
commentContent
,
);
}),
),
...
...
@@ -248,7 +250,7 @@ class _ReviewShopPageState extends State<ReviewShopPage> {
);
}
Widget
list
(
String
name
)
{
Widget
list
(
String
name
,
String
image
,
String
content
)
{
return
Card
(
child:
Container
(
// color: Colors.deepPurpleAccent,
...
...
@@ -264,12 +266,16 @@ class _ReviewShopPageState extends State<ReviewShopPage> {
children:
<
Widget
>[
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
50
),
child:
Image
.
asset
(
child:
presenter
.
reviewShopModel
==
null
?
Image
.
asset
(
'assets/images/ic_userimg.png'
,
width:
55.0
,
height:
55.0
,
fit:
BoxFit
.
cover
,
),
)
:
Image
.
network
(
"https://backend.feelver.com/"
+
image
,
width:
55.0
,
height:
55.0
,
fit:
BoxFit
.
cover
,)
),
SizedBox
(
width:
SizeConfig
.
getWidth
(
10
),
...
...
@@ -331,7 +337,7 @@ class _ReviewShopPageState extends State<ReviewShopPage> {
padding:
const
EdgeInsets
.
only
(
top:
10
,
bottom:
10
,
left:
2
,
right:
2
),
child:
Text
(
'การบริการและบรรยากาศดีมาก มีห้องอาบน้ำพร้อมผ้าเช็ดตัว สบู่ ครีมสระผม พนักงานดูแลเอาใจใส่ และคอยแนะนำตลอดจนถึง therapist มีความเป็นมืออาชีพให้ความผ่อนคลายแก่ลูกค้า'
,
content
,
style:
TextStyle
(
fontSize:
SizeConfig
.
getFontSize
(
12
),
),
...
...
pubspec.lock
View file @
91eb10ce
...
...
@@ -92,6 +92,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "5.2.1"
firebase_crashlytics:
dependency: "direct main"
description:
name: firebase_crashlytics
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4+1"
flutter:
dependency: "direct main"
description: flutter
...
...
pubspec.yaml
View file @
91eb10ce
...
...
@@ -37,6 +37,7 @@ dependencies:
date_format
:
^1.0.8
flutter_datetime_picker
:
^1.4.0
carousel_slider
:
^2.2.1
firebase_crashlytics
:
^0.1.4+1
...
...
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