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
e486a829
Commit
e486a829
authored
Aug 25, 2020
by
Mobile : Jetrin Phuekkaew (N'new)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
f6cc3b6d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
5 deletions
+34
-5
lib/ui/home/home_presenter.dart
+1
-1
lib/ui/shop/shop_list_detail.dart
+33
-4
No files found.
lib/ui/home/home_presenter.dart
View file @
e486a829
...
@@ -92,7 +92,7 @@ class HomePresenter extends BasePresenter<HomePage> {
...
@@ -92,7 +92,7 @@ class HomePresenter extends BasePresenter<HomePage> {
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
(
...
...
lib/ui/shop/shop_list_detail.dart
View file @
e486a829
...
@@ -15,7 +15,7 @@ class ShopListDetail extends StatefulWidget {
...
@@ -15,7 +15,7 @@ class ShopListDetail extends StatefulWidget {
}
}
class
_ShopListDetailState
extends
State
<
ShopListDetail
>
{
class
_ShopListDetailState
extends
State
<
ShopListDetail
>
{
bool
fav
=
false
;
ShoplistdetailPresenter
presenter
;
ShoplistdetailPresenter
presenter
;
@override
@override
...
@@ -136,12 +136,41 @@ class _ShopListDetailState extends State<ShopListDetail> {
...
@@ -136,12 +136,41 @@ class _ShopListDetailState extends State<ShopListDetail> {
Positioned
(
Positioned
(
right:
SizeConfig
.
getPadding
(
16
),
right:
SizeConfig
.
getPadding
(
16
),
top:
SizeConfig
.
getPadding
(
16
),
top:
SizeConfig
.
getPadding
(
16
),
child:
ImageIcon
(
child:
InkResponse
(
highlightShape:
BoxShape
.
circle
,
highlightColor:
Color
(
0xFFDD175F
),
focusColor:
Color
(
0xFFDD175F
),
splashColor:
Color
(
0xFFDD175F
),
onTap:
()
{
print
(
"add fav"
);
setState
(()
{
fav
?
fav
=
false
:
fav
=
true
;
});
showDialog
(
context:
context
,
builder:
(
context
)
{
Future
.
delayed
(
Duration
(
seconds:
1
),
()
{
Navigator
.
of
(
context
).
pop
(
true
);
});
return
AlertDialog
(
content:
ImageIcon
(
AssetImage
(
'assets/images/ic_fav_list.png'
),
AssetImage
(
'assets/images/ic_fav_list.png'
),
color:
Colors
.
white
,
color:
fav
?
Color
(
0xFFDD175F
):
Colors
.
grey
,
size:
SizeConfig
.
getFontSize
(
30
),
)
,
title:
Center
(
child:
Text
(
'บันทึกสำเร็จ'
)),
);
});
},
child:
ImageIcon
(
AssetImage
(
'assets/images/ic_fav_list.png'
),
color:
fav
?
Color
(
0xFFDD175F
):
Colors
.
white
,
size:
SizeConfig
.
getFontSize
(
30
),
size:
SizeConfig
.
getFontSize
(
30
),
),
),
),
),
),
Positioned
(
Positioned
(
left:
SizeConfig
.
getPadding
(
16
),
left:
SizeConfig
.
getPadding
(
16
),
top:
SizeConfig
.
getPadding
(
165
),
top:
SizeConfig
.
getPadding
(
165
),
...
...
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