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
69848d8e
Commit
69848d8e
authored
Jul 11, 2020
by
朱璇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
埋点修改
parent
7b4c3be3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
TopList.dart
lib/ClueModel/page/top/TopList.dart
+5
-4
TopPage.dart
lib/ClueModel/page/top/TopPage.dart
+2
-1
No files found.
lib/ClueModel/page/top/TopList.dart
View file @
69848d8e
...
...
@@ -16,8 +16,8 @@ class TopList extends StatefulWidget {
final
int
id
;
double
topHeight
;
final
String
rankId
;
TopList
(
this
.
rankId
,
this
.
id
,
this
.
topHeight
);
String
tabName
;
TopList
(
this
.
rankId
,
this
.
id
,
this
.
topHeight
,
this
.
tabName
);
@override
State
<
StatefulWidget
>
createState
()
=>
TopListState
();
...
...
@@ -88,7 +88,8 @@ class TopListState extends State<TopList> with AutomaticKeepAliveClientMixin {
itemExtent:
100
,
delegate:
SliverChildBuilderDelegate
(
(
BuildContext
context
,
int
index
)
{
return
PlanItem
(
_model
.
datas
[
index
],
index
,
false
);
return
PlanItem
(
_model
.
datas
[
index
],
index
,
false
,
widget
.
tabName
);
},
childCount:
_model
.
datas
.
length
,
),
...
...
@@ -112,7 +113,7 @@ class TopListState extends State<TopList> with AutomaticKeepAliveClientMixin {
],
),
onLoading:
()
{
_model
.
loadMore
();
},
pullDown:
false
,
pullUp:
true
,
loadMoreColor:
Color
(
0xffF7F6FA
));
},
pullDown:
false
,
pullUp:
true
,
loadMoreColor:
Color
(
0xffF7F6FA
));
}
@override
...
...
lib/ClueModel/page/top/TopPage.dart
View file @
69848d8e
...
...
@@ -160,7 +160,8 @@ class TopPageState extends BaseState<TopPage> with TickerProviderStateMixin {
for
(
int
i
=
0
;
i
<
_model
.
tabs
.
length
;
i
++)
{
list
.
add
(
extend
.
NestedScrollViewInnerScrollPositionKeyWidget
(
Key
(
"Tab
${i}
"
),
TopList
(
widget
.
id
,
_model
.
tabs
[
i
].
id
,
kToolbarHeight
+
d
)));
TopList
(
widget
.
id
,
_model
.
tabs
[
i
].
id
,
kToolbarHeight
+
d
,
_model
.
tabs
[
i
].
name
)));
}
return
extend
.
NestedScrollView
(
innerScrollPositionKeyBuilder:
()
{
...
...
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