Commit ae142f80 authored by 林生雨's avatar 林生雨

w

parent 16b3268c
...@@ -434,7 +434,8 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin { ...@@ -434,7 +434,8 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
)).gestureDetector(() { )).gestureDetector(() {
Map<String, dynamic> map = { Map<String, dynamic> map = {
"rank_type": "0", "rank_type": "0",
"id": "${data.data[1].id}" "id": "${data.data[0].id}",
"title": "${data.data[0].name}",
}; };
RouterCenterImpl() RouterCenterImpl()
.findMainRouter() .findMainRouter()
...@@ -462,7 +463,8 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin { ...@@ -462,7 +463,8 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
)).gestureDetector(() { )).gestureDetector(() {
Map<String, dynamic> map = { Map<String, dynamic> map = {
"rank_type": "1", "rank_type": "1",
"id": "${data.data[1].id}" "id": "${data.data[1].id}",
"title": "${data.data[1].name}",
}; };
RouterCenterImpl() RouterCenterImpl()
.findMainRouter() .findMainRouter()
......
...@@ -28,11 +28,13 @@ import 'TopList.dart'; ...@@ -28,11 +28,13 @@ import 'TopList.dart';
class TopPage extends StatefulWidget { class TopPage extends StatefulWidget {
String rank_type; String rank_type;
String id; String id;
String title;
TopPage(Map<String, dynamic> map) { TopPage(Map<String, dynamic> map) {
print("LSY ${map.toString()}"); print("LSY ${map.toString()}");
this.rank_type = map["rank_type"]; this.rank_type = map["rank_type"];
this.id = map["id"]; this.id = map["id"];
this.title = map["title"];
} }
@override @override
...@@ -140,14 +142,14 @@ class TopPageState extends BaseState<TopPage> with TickerProviderStateMixin { ...@@ -140,14 +142,14 @@ class TopPageState extends BaseState<TopPage> with TickerProviderStateMixin {
), ),
), ),
baseSliverBack(() { baseSliverBack(() {
if(RouterCenterImpl().findMainRouter().isWithNative()){ if (RouterCenterImpl().findMainRouter().isWithNative()) {
FlutterBoost.singleton.closeCurrent(); FlutterBoost.singleton.closeCurrent();
}else{ } else {
Navigator.of(context).pop(); Navigator.of(context).pop();
} }
}), }),
baseSliverTitle( baseSliverTitle("${widget.title}", MediaQuery.of(context).size.width,
"title", MediaQuery.of(context).size.width, _model.textLive) _model.textLive)
], ],
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment