提交 2611e3ea authored 作者: maodou's avatar maodou

1:个人信息修改昵称后,我的界面昵称同步修改

上级 a464f61c
...@@ -15,19 +15,20 @@ class BuildItem extends StatelessWidget { ...@@ -15,19 +15,20 @@ class BuildItem extends StatelessWidget {
margin: EdgeInsets.only(left: 10.w,top: 10.w,right: 5.w), margin: EdgeInsets.only(left: 10.w,top: 10.w,right: 5.w),
child: Stack( child: Stack(
children: [ children: [
Container( // Image.asset(model.type ==1?'assets/images/coupon_yes.png':'assets/images/coupon_no.png',
child:Image.asset( // fit: BoxFit.contain,
// width: double.infinity,),
Image.asset(
'assets/images/coupon_bg.png', 'assets/images/coupon_bg.png',
fit: BoxFit.contain, fit: BoxFit.contain,
width: double.infinity, width: double.infinity,
) ,
), ),
Container( SizedBox(
height: 105.w, height: 105.w,
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Container( SizedBox(
width:120.w , width:120.w ,
height: 100.w, height: 100.w,
child: Column( child: Column(
...@@ -160,55 +161,14 @@ class BuildItem extends StatelessWidget { ...@@ -160,55 +161,14 @@ class BuildItem extends StatelessWidget {
], ],
), ),
), ),
], ],
), ),
], ],
), ),
],), ],),
// 去除操作按钮区域的内边距 // 去除操作按钮区域的内边距
actionsPadding: EdgeInsets.zero, actionsPadding: EdgeInsets.zero,
/* actions: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, // 或者使用MainAxisAlignment.spaceEvenly
children: [
GestureDetector(
onTap: () => Navigator.of(context).pop(),
child: const Text(
'取消',
style: TextStyle(
fontSize: 12,
fontWeight: Fonts.medium,
color: Colours.c6,
),
),
),
Container(
height: 39.5.w, // 设置分割线的高度
width: 1, // 设置分割线的宽度
color: Colours.cLine, // 设置分割线的颜色
),
GestureDetector(
onTap: () {
controller.cancelPay();
Navigator.of(context).pop();
Navigator.pop(context);
},
child: const Text(
'确定',
style: TextStyle(
fontSize: 12,
fontWeight: Fonts.medium,
color: Colours.cAB1941,
),
),
),
],
),
],*/
); );
}, },
); );
...@@ -221,19 +181,6 @@ class BuildItem extends StatelessWidget { ...@@ -221,19 +181,6 @@ class BuildItem extends StatelessWidget {
), ),
], ],
), ),
/* Column(
crossAxisAlignment: CrossAxisAlignment.end,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Gaps.vGaps10,
Text('优惠券使用规则',style: TextStyle(fontSize: 10.w,height: 1.5,color: Colours.cAB1941),
maxLines: 1,overflow: TextOverflow.ellipsis,),
],
),*/
], ],
), ),
), ),
......
...@@ -12,6 +12,7 @@ class UserNickController extends GetxController { ...@@ -12,6 +12,7 @@ class UserNickController extends GetxController {
Toast.show('修改成功'); Toast.show('修改成功');
userInfo.name = nick ; userInfo.name = nick ;
update(); update();
Get.put(MineController()).getInfo();
} }
} }
} }
...@@ -10,6 +10,7 @@ import 'package:get/get_state_manager/src/simple/get_controllers.dart'; ...@@ -10,6 +10,7 @@ import 'package:get/get_state_manager/src/simple/get_controllers.dart';
import '../../apis/index.dart'; import '../../apis/index.dart';
import '../../models/index.dart'; import '../../models/index.dart';
import '../mine/index.dart';
import '../user_gender/index.dart'; import '../user_gender/index.dart';
part 'view.dart'; part 'view.dart';
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论