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

w

parent 16b3268c
......@@ -434,7 +434,8 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
)).gestureDetector(() {
Map<String, dynamic> map = {
"rank_type": "0",
"id": "${data.data[1].id}"
"id": "${data.data[0].id}",
"title": "${data.data[0].name}",
};
RouterCenterImpl()
.findMainRouter()
......@@ -462,7 +463,8 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
)).gestureDetector(() {
Map<String, dynamic> map = {
"rank_type": "1",
"id": "${data.data[1].id}"
"id": "${data.data[1].id}",
"title": "${data.data[1].name}",
};
RouterCenterImpl()
.findMainRouter()
......
......@@ -28,11 +28,13 @@ import 'TopList.dart';
class TopPage extends StatefulWidget {
String rank_type;
String id;
String title;
TopPage(Map<String, dynamic> map) {
print("LSY ${map.toString()}");
this.rank_type = map["rank_type"];
this.id = map["id"];
this.title = map["title"];
}
@override
......@@ -140,14 +142,14 @@ class TopPageState extends BaseState<TopPage> with TickerProviderStateMixin {
),
),
baseSliverBack(() {
if(RouterCenterImpl().findMainRouter().isWithNative()){
if (RouterCenterImpl().findMainRouter().isWithNative()) {
FlutterBoost.singleton.closeCurrent();
}else{
} else {
Navigator.of(context).pop();
}
}),
baseSliverTitle(
"title", MediaQuery.of(context).size.width, _model.textLive)
baseSliverTitle("${widget.title}", MediaQuery.of(context).size.width,
_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