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
593f890b
Commit
593f890b
authored
Aug 25, 2020
by
Mobile : Ball (Apprentice)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://gitlab.2fellows.com/art/feelver
into develop
# Conflicts: # lib/ui/shop/shop_list_detail.dart
parents
93a7d2c6
07a87a4b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
6 deletions
+39
-6
lib/main.dart
+1
-1
lib/ui/home/home_presenter.dart
+1
-1
lib/ui/shop/shop_list_detail.dart
+37
-4
No files found.
lib/main.dart
View file @
593f890b
...
...
@@ -33,7 +33,7 @@ class MyApp extends StatelessWidget {
),
home:
Home
Page
()
home:
SplashScreen
Page
()
...
...
lib/ui/home/home_presenter.dart
View file @
593f890b
...
...
@@ -92,7 +92,7 @@ class HomePresenter extends BasePresenter<HomePage> {
setState
(()
{
getmodel
=
res
.
success
;
});
//
print("Hii" + getmodel.result[0].name);
print
(
"Hii"
+
getmodel
.
result
[
0
].
name
);
}
else
{
Alert
(
style:
AlertStyle
(
...
...
lib/ui/shop/shop_list_detail.dart
View file @
593f890b
...
...
@@ -16,7 +16,7 @@ class ShopListDetail extends StatefulWidget {
}
class
_ShopListDetailState
extends
State
<
ShopListDetail
>
{
bool
fav
=
false
;
ShoplistdetailPresenter
presenter
;
@override
...
...
@@ -137,12 +137,41 @@ class _ShopListDetailState extends State<ShopListDetail> {
Positioned
(
right:
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'
),
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
),
),
),
),
),
Positioned
(
left:
SizeConfig
.
getPadding
(
16
),
top:
SizeConfig
.
getPadding
(
165
),
...
...
@@ -417,6 +446,10 @@ class _ShopListDetailState extends State<ShopListDetail> {
minWidth:
MediaQuery
.
of
(
context
).
size
.
width
-
50
,
height:
55
,
color:
Color
(
0xff3694A3
),
child:
...
...
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