Commit c82a5d29 authored by 杜欣's avatar 杜欣

Ui走查

parent b819e33d
......@@ -53,7 +53,7 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
screenWidth = MediaQuery.of(context).size.width;
return Scaffold(
appBar: baseAppBar(
title: "对比详情",
titleWidget: baseText("对比详情", 18, Color(0xff333333), bold: true),
centerTitle: true,
backClick: () {
if (RouterCenterImpl().findMainRouter().isWithNative()) {
......
......@@ -54,7 +54,7 @@ class _PlansCompareFeedState extends BaseState<PlansCompareFeedPage>
return Scaffold(
backgroundColor: Colors.white,
appBar: baseAppBar(
title: "方案对比",
titleWidget: baseText("方案对比", 18, Color(0xff333333), bold: true),
centerTitle: true,
backClick: () {
if (RouterCenterImpl().findMainRouter().isWithNative()) {
......
......@@ -47,7 +47,7 @@ class _ProjectDetailsState extends BaseState<ProjectDetailsPage> {
Widget buildItem(BuildContext context) {
return Scaffold(
appBar: baseAppBar(
title: "项目说明",
titleWidget: baseText("项目说明", 18, Color(0xff333333), bold: true),
centerTitle: true,
backClick: () {
if (RouterCenterImpl().findMainRouter().isWithNative()) {
......
......@@ -183,14 +183,14 @@ class LevelOneState extends BaseState<LevelOnePage>
child: newHome(),
)),
baseSliverTitle("${widget.title}", MediaQuery.of(context).size.width,
_model.textLive),
_model.textLive, context),
baseSliverBack(() {
if (RouterCenterImpl().findMainRouter().isWithNative()) {
FlutterBoost.singleton.closeCurrent();
} else {
Navigator.of(context).pop();
}
}),
}, context),
],
);
}
......
......@@ -174,14 +174,14 @@ class LevelTwoState extends BaseState<LevelTwoPage>
child: newHome(),
)),
baseSliverTitle("${_model.name}", MediaQuery.of(context).size.width,
_model.textLive),
_model.textLive, context),
baseSliverBack(() {
if (RouterCenterImpl().findMainRouter().isWithNative()) {
FlutterBoost.singleton.closeCurrent();
} else {
Navigator.of(context).pop();
}
}),
}, context),
],
);
}
......
......@@ -148,9 +148,9 @@ class TopPageState extends BaseState<TopPage> with TickerProviderStateMixin {
} else {
Navigator.of(context).pop();
}
}),
}, context),
baseSliverTitle("${widget.title}", MediaQuery.of(context).size.width,
_model.textLive)
_model.textLive, context)
],
);
}
......
......@@ -513,9 +513,10 @@ Widget baseSliverAppBar(String url,
);
}
Widget baseSliverBack(VoidCallback tap) {
Widget baseSliverBack(VoidCallback tap, context) {
final double topPadding = MediaQuery.of(context).padding.top;
return Positioned(
top: 45,
top: topPadding + 12,
left: 7,
child: GestureDetector(
behavior: HitTestBehavior.opaque,
......@@ -536,9 +537,10 @@ Widget baseSliverBack(VoidCallback tap) {
);
}
Widget baseSliverTitle(String text, double width, LiveData liveData) {
Widget baseSliverTitle(String text, double width, LiveData liveData, context) {
final double topPadding = MediaQuery.of(context).padding.top;
return Positioned(
top: 46,
top: topPadding + 13,
child: StreamBuilder(
stream: liveData.stream,
initialData: liveData.data ?? 0.0,
......
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