Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_flutter
Project
Project
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
林生雨
gm_flutter
Commits
cab24911
Commit
cab24911
authored
Jul 06, 2020
by
朱翠翠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI
parent
ea447e22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
15 deletions
+31
-15
PlansCompareFeedItemView.dart
...Model/page/PlansCompareFeed/PlansCompareFeedItemView.dart
+31
-15
No files found.
lib/ClueModel/page/PlansCompareFeed/PlansCompareFeedItemView.dart
View file @
cab24911
...
...
@@ -20,11 +20,9 @@ class PlansCompareFeedItemView extends StatefulWidget {
class
_PlansCompareFeedItemViewState
extends
BaseState
<
PlansCompareFeedItemView
>
{
ImageIcon
_checked
=
ImageIcon
(
AssetImage
(
"assets/icon_compare_select.png"
));
ImageIcon
_unchecked
=
ImageIcon
(
AssetImage
(
"assets/icon_compare_unselect.png"
));
ImageIcon
_icon
=
ImageIcon
(
AssetImage
(
"assets/icon_compare_unselect.png"
));
String
_checked
=
"assets/icon_compare_select.png"
;
String
_unchecked
=
"assets/icon_compare_unselect.png"
;
String
_icon
=
"assets/icon_compare_unselect.png"
;
@override
Widget
buildItem
(
BuildContext
context
)
{
...
...
@@ -33,7 +31,7 @@ class _PlansCompareFeedItemViewState
}
getItem
()
{
if
(
widget
.
plan
.
planType
==
1
)
{
if
(
widget
.
plan
.
planType
==
2
)
{
return
getFirstLevelItem
();
}
else
{
return
getSecondLevelItem
();
...
...
@@ -48,10 +46,19 @@ class _PlansCompareFeedItemViewState
padding:
EdgeInsets
.
only
(
top:
20
,
bottom:
20
),
child:
Row
(
children:
<
Widget
>[
IconButton
(
icon:
_icon
,
onPressed:
()
=>
onClickCheckBox
(
_icon
),
),
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
onTap:
()
=>
onClickCheckBox
(
_icon
),
child:
Container
(
alignment:
Alignment
.
center
,
child:
ClipRRect
(
child:
Image
.
asset
(
_icon
,
width:
17
,
height:
17
,
fit:
BoxFit
.
fill
,
)),
)),
Container
(
margin:
EdgeInsets
.
only
(
left:
15
,
right:
15
),
child:
ClipRRect
(
...
...
@@ -109,10 +116,19 @@ class _PlansCompareFeedItemViewState
Container
(
margin:
EdgeInsets
.
only
(
right:
15.0
),
alignment:
Alignment
.
centerLeft
,
child:
IconButton
(
icon:
_icon
,
onPressed:
()
=>
onClickCheckBox
(
_icon
),
),
child:
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
onTap:
()
=>
onClickCheckBox
(
_icon
),
child:
Container
(
alignment:
Alignment
.
center
,
child:
ClipRRect
(
child:
Image
.
asset
(
_icon
,
width:
17
,
height:
17
,
fit:
BoxFit
.
fill
,
)),
)),
),
Expanded
(
child:
Column
(
...
...
@@ -140,7 +156,7 @@ class _PlansCompareFeedItemViewState
);
}
onClickCheckBox
(
ImageIcon
icon
)
{
onClickCheckBox
(
String
icon
)
{
if
(
icon
==
_checked
)
{
_icon
=
_unchecked
;
}
else
{
...
...
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