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
553ec9d8
Commit
553ec9d8
authored
Jul 08, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
da098708
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
PlanPage.dart
lib/ClueModel/page/plan/PlanPage.dart
+22
-2
No files found.
lib/ClueModel/page/plan/PlanPage.dart
View file @
553ec9d8
...
...
@@ -84,7 +84,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
@override
Widget
buildItem
(
BuildContext
context
)
{
stateBarHeight
=
MediaQueryData
.
fromWindow
(
window
).
padding
.
top
;
topHeight
=
stateBarHeight
+
kToolbarHeight
;
topHeight
=
stateBarHeight
+
kToolbarHeight
;
return
Scaffold
(
body:
MediaQuery
.
removePadding
(
removeTop:
true
,
...
...
@@ -104,7 +104,8 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
children:
<
Widget
>[
Container
(
width:
MediaQuery
.
of
(
context
).
size
.
width
,
height:
MediaQuery
.
of
(
context
).
size
.
height
-
topHeight
,
height:
MediaQuery
.
of
(
context
).
size
.
height
-
topHeight
,
child:
child
(),
),
StreamBuilder
<
List
<
double
>>(
...
...
@@ -496,6 +497,25 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
if
(
_model
.
feedDatas
!=
null
&&
_model
.
feedDatas
.
length
>
0
)
{
height
=
max
(
_model
.
feedDatas
.
length
*
100.0
,
height
);
}
if
(
data
.
data
.
first
==
FAIL
)
{
return
Container
(
color:
Color
(
0xffF7F6FA
),
width:
double
.
maxFinite
,
height:
height
,
child:
errorItem
(
MediaQuery
.
of
(
context
).
size
.
width
,
height
,
()
{
_model
.
feedsLive
.
notifyView
(
Pair
(
LOADING
,
null
));
_model
.
refreshFeed
(
true
);
}),
);
}
if
(
data
.
data
.
first
==
LOADING
)
{
return
Container
(
color:
Color
(
0xffF7F6FA
),
width:
double
.
maxFinite
,
height:
height
,
child:
loadingItem
(),
);
}
return
Container
(
color:
Color
(
0xffF7F6FA
),
width:
double
.
maxFinite
,
...
...
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