提交 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 (onTap !=null) onTap!(model);
if (model.link != Routes.love){ // if (model.link != null){
context.pushNamed(model.link!); // if (model.link != Routes.love){
} // context.pushNamed(model.link!);
else{ // }
if (onTap !=null) onTap!(model); // else{
} // if (onTap !=null) onTap!(model);
} // }
// }
}, },
child: Container( child: Container(
color: Colors.white, color: Colors.white,
......
...@@ -76,39 +76,46 @@ class _UserOrderState extends State<UserOrderPage> with SingleTickerProviderStat ...@@ -76,39 +76,46 @@ class _UserOrderState extends State<UserOrderPage> with SingleTickerProviderStat
body: _buildBody(controller), body: _buildBody(controller),
), ),
);*/ );*/
Scaffold( WillPopScope(
appBar: CustomAppBar( onWillPop: () async {
automaticallyImplyLeading: false, context.pop(true);
titleSpacing: 0, return false;
title: Padding( },
padding: EdgeInsets.symmetric(horizontal: AppTheme.margin), child: Scaffold(
child: CustomInputSearch( appBar: CustomAppBar(
controller: searchController, automaticallyImplyLeading: false,
readOnly: true, titleSpacing: 0,
hintText: '搜索我的订单', title: Padding(
onTap: () { padding: EdgeInsets.symmetric(horizontal: AppTheme.margin),
context.pushNamed(Routes.orderSearch); child: CustomInputSearch(
}, controller: searchController,
readOnly: true,
hintText: '搜索我的订单',
onTap: () {
context.pushNamed(Routes.orderSearch);
},
),
), ),
), actions: [
actions: [ GestureDetector(
GestureDetector( onTap: () {
onTap: () { context.pop();
context.pop(); },
}, child: Container(
child: Container( padding: EdgeInsets.only(left: 10.w, top: 10.w, bottom: 10.w),
padding: EdgeInsets.only(left: 10.w, top: 10.w, bottom: 10.w), child: Text(
child: Text( '取消',
'取消', style:
style: TextStyle(fontSize: 14.w, height: 1.5, color: Colours.c3),
TextStyle(fontSize: 14.w, height: 1.5, color: Colours.c3), ),
), ),
), )
) ],
], ),
body: _buildBody(),
), ),
body: _buildBody(),
); );
} }
Widget _buildBody( ) { Widget _buildBody( ) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论