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
c459f15f
Commit
c459f15f
authored
Jul 10, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w
parent
cef35597
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
LevelOneList.dart
lib/ClueModel/page/levelOne/LevelOneList.dart
+6
-4
PlanPage.dart
lib/ClueModel/page/plan/PlanPage.dart
+2
-1
TopList.dart
lib/ClueModel/page/top/TopList.dart
+1
-1
BaseComponent.dart
lib/commonModel/base/BaseComponent.dart
+3
-1
No files found.
lib/ClueModel/page/levelOne/LevelOneList.dart
View file @
c459f15f
...
@@ -168,11 +168,13 @@ class LevelOneListState extends State<LevelOneList>
...
@@ -168,11 +168,13 @@ class LevelOneListState extends State<LevelOneList>
double
height
=
MediaQuery
.
of
(
context
).
size
.
height
-
double
height
=
MediaQuery
.
of
(
context
).
size
.
height
-
40
-
40
-
widget
.
topHeight
-
widget
.
topHeight
-
totalHeight
-
totalHeight
55
-
// - 55
40
;
// - 40
;
return
SliverToBoxAdapter
(
return
SliverToBoxAdapter
(
child:
Container
(
child:
Container
(
color:
Color
(
0xffF7F6FA
),
height:
height
<
0
?
0
:
height
,
height:
height
<
0
?
0
:
height
,
),
),
);
);
...
@@ -181,7 +183,7 @@ class LevelOneListState extends State<LevelOneList>
...
@@ -181,7 +183,7 @@ class LevelOneListState extends State<LevelOneList>
],
],
),
onLoading:
()
{
),
onLoading:
()
{
_model
.
loadMore
();
_model
.
loadMore
();
},
pullDown:
false
,
pullUp:
true
);
},
pullDown:
false
,
pullUp:
true
,
loadMoreColor:
Color
(
0xffF7F6FA
)
);
}
}
@override
@override
...
...
lib/ClueModel/page/plan/PlanPage.dart
View file @
c459f15f
...
@@ -408,7 +408,8 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -408,7 +408,8 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
_model
.
loadMore
();
_model
.
loadMore
();
},
},
pullDown:
false
,
pullDown:
false
,
pullUp:
true
));
pullUp:
true
,
loadMoreColor:
Color
(
0xffF7F6FA
)));
},
},
);
);
}
}
...
...
lib/ClueModel/page/top/TopList.dart
View file @
c459f15f
...
@@ -112,7 +112,7 @@ class TopListState extends State<TopList> with AutomaticKeepAliveClientMixin {
...
@@ -112,7 +112,7 @@ class TopListState extends State<TopList> with AutomaticKeepAliveClientMixin {
],
],
),
onLoading:
()
{
),
onLoading:
()
{
_model
.
loadMore
();
_model
.
loadMore
();
},
pullDown:
false
,
pullUp:
true
);
},
pullDown:
false
,
pullUp:
true
,
loadMoreColor:
Color
(
0xffF7F6FA
)
);
}
}
@override
@override
...
...
lib/commonModel/base/BaseComponent.dart
View file @
c459f15f
...
@@ -296,7 +296,8 @@ Widget baseRefreshView(RefreshController refreshController,
...
@@ -296,7 +296,8 @@ Widget baseRefreshView(RefreshController refreshController,
bool
pullDown
=
true
,
bool
pullDown
=
true
,
VoidCallback
onLoading
,
VoidCallback
onLoading
,
ScrollController
scrollController
,
ScrollController
scrollController
,
Widget
customScrollView
})
{
Widget
customScrollView
,
Color
loadMoreColor
})
{
return
SmartRefresher
(
return
SmartRefresher
(
enablePullDown:
pullDown
,
enablePullDown:
pullDown
,
enablePullUp:
pullUp
,
enablePullUp:
pullUp
,
...
@@ -326,6 +327,7 @@ Widget baseRefreshView(RefreshController refreshController,
...
@@ -326,6 +327,7 @@ Widget baseRefreshView(RefreshController refreshController,
repeat:
true
,
reverse:
false
);
repeat:
true
,
reverse:
false
);
}
}
return
Container
(
return
Container
(
color:
loadMoreColor
??
Colors
.
white
,
height:
55.0
,
height:
55.0
,
child:
Center
(
child:
body
),
child:
Center
(
child:
body
),
);
);
...
...
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