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
a2652a11
Commit
a2652a11
authored
Jul 10, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit :
parent
044cdd08
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
8 deletions
+20
-8
PlanItem.dart
lib/ClueModel/page/plan/PlanItem.dart
+5
-1
TopPage.dart
lib/ClueModel/page/top/TopPage.dart
+7
-1
BaseComponent.dart
lib/commonModel/base/BaseComponent.dart
+5
-2
DioInterceptor.dart
lib/commonModel/net/DioInterceptor.dart
+3
-4
No files found.
lib/ClueModel/page/plan/PlanItem.dart
View file @
a2652a11
...
...
@@ -28,6 +28,10 @@ class PlanItem extends StatelessWidget {
}
i
++;
});
String
rate
=
plans
.
positiveRate
;
if
(
rate
!=
null
&&
rate
.
contains
(
"."
))
{
rate
=
rate
.
split
(
"."
)[
0
];
}
return
Container
(
margin:
EdgeInsets
.
only
(
top:
10
,
left:
10
,
right:
10
),
child:
Container
(
...
...
@@ -84,7 +88,7 @@ class PlanItem extends StatelessWidget {
Container
(
width:
4
,
),
baseText
(
plans
.
positiveRate
,
14
,
Color
(
0xffFF5963
))
baseText
(
"
${rate}
%"
,
14
,
Color
(
0xffFF5963
))
],
),
),
...
...
lib/ClueModel/page/top/TopPage.dart
View file @
a2652a11
...
...
@@ -10,6 +10,7 @@ import 'package:flutter/cupertino.dart';
import
'package:extended_nested_scroll_view/extended_nested_scroll_view.dart'
as
extend
;
import
'package:flutter/material.dart'
;
import
'package:flutter_boost/flutter_boost.dart'
;
import
'package:gm_flutter/ClueModel/page/common/StickyTabBarDelegate.dart'
;
import
'package:gm_flutter/ClueModel/page/top/TopModel.dart'
;
import
'package:gm_flutter/ClueModel/util/PosUtil.dart'
;
...
...
@@ -19,6 +20,7 @@ import 'package:gm_flutter/commonModel/eventbus/SimpleEventBus.dart';
import
'package:gm_flutter/commonModel/net/DioUtil.dart'
;
import
'package:gm_flutter/commonModel/util/DartUtil.dart'
;
import
'package:gm_flutter/commonModel/view/baseRefreshIndicator.dart'
;
import
'package:gm_flutter/main.mark.dart'
;
import
'package:pull_to_refresh/pull_to_refresh.dart'
;
import
'TopList.dart'
;
...
...
@@ -138,7 +140,11 @@ class TopPageState extends BaseState<TopPage> with TickerProviderStateMixin {
),
),
baseSliverBack
(()
{
Navigator
.
of
(
context
).
pop
();
if
(
RouterCenterImpl
().
findMainRouter
().
isWithNative
()){
FlutterBoost
.
singleton
.
closeCurrent
();
}
else
{
Navigator
.
of
(
context
).
pop
();
}
}),
baseSliverTitle
(
"title"
,
MediaQuery
.
of
(
context
).
size
.
width
,
_model
.
textLive
)
...
...
lib/commonModel/base/BaseComponent.dart
View file @
a2652a11
...
...
@@ -486,8 +486,11 @@ Widget baseSliverBack(VoidCallback tap) {
decoration:
BoxDecoration
(
color:
Color
(
0x99FFFFFF
),
shape:
BoxShape
.
circle
),
alignment:
Alignment
.
center
,
child:
Container
(
child:
Image
.
asset
(
"assets/left_arrow.png"
),
child:
Hero
(
tag:
"baseSliverBack"
,
child:
Container
(
child:
Image
.
asset
(
"assets/left_arrow.png"
),
),
),
)),
);
...
...
lib/commonModel/net/DioInterceptor.dart
View file @
a2652a11
...
...
@@ -89,9 +89,8 @@ class DioInterceptorManager {
.
get
(
MEMORY_CACHE
)
.
get
(
ANDROID_DEVICE_ID
)
!=
null
)
{
opt
.
queryParameters
[
ANDROID_DEVICE_ID
]
=
"
${CacheManager.getInstance()
.get(MEMORY_CACHE)
.get(ANDROID_DEVICE_ID)}
"
;
opt
.
queryParameters
[
ANDROID_DEVICE_ID
]
=
"
${CacheManager.getInstance().get(MEMORY_CACHE).get(ANDROID_DEVICE_ID)}
"
;
}
}
else
{
if
(
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
RELEASE
)
!=
null
)
{
...
...
@@ -122,7 +121,7 @@ class DioInterceptorManager {
}
}
print
(
"请求之前 onRequest
${opt.headers}
"
);
print
(
"请求之前 onRequest
${opt.
uri}${opt.queryParameters}${opt.
headers}
"
);
},
onResponse:
(
response
)
{
print
(
"响应之前 onResponse
${response}
"
);
},
onError:
(
e
)
{
...
...
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