提交 a26a9f90 authored 作者: yueweilu's avatar yueweilu

数据刷新问题

上级 00c31596
......@@ -40,14 +40,15 @@ class BuildAccount extends StatelessWidget {
return Expanded(
child: GestureDetector(
onTap: (){
if (model.link != null){
if (model.link != Routes.love){
context.pushNamed(model.link!);
}
else{
if (onTap !=null) onTap!(model);
}
}
// if (model.link != null){
// if (model.link != Routes.love){
// context.pushNamed(model.link!);
// }
// else{
// if (onTap !=null) onTap!(model);
// }
// }
},
child: Container(
color: Colors.white,
......
......@@ -76,7 +76,12 @@ class _UserOrderState extends State<UserOrderPage> with SingleTickerProviderStat
body: _buildBody(controller),
),
);*/
Scaffold(
WillPopScope(
onWillPop: () async {
context.pop(true);
return false;
},
child: Scaffold(
appBar: CustomAppBar(
automaticallyImplyLeading: false,
titleSpacing: 0,
......@@ -108,7 +113,9 @@ class _UserOrderState extends State<UserOrderPage> with SingleTickerProviderStat
],
),
body: _buildBody(),
),
);
}
Widget _buildBody( ) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论