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

数据刷新问题

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