Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
2611e3ea
提交
2611e3ea
authored
2月 20, 2024
作者:
maodou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1:个人信息修改昵称后,我的界面昵称同步修改
上级
a464f61c
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
8 行增加
和
59 行删除
+8
-59
item.dart
lib/pages/user_coupon/widgets/item.dart
+6
-59
controller.dart
lib/pages/user_nick/controller.dart
+1
-0
index.dart
lib/pages/user_nick/index.dart
+1
-0
没有找到文件。
lib/pages/user_coupon/widgets/item.dart
浏览文件 @
2611e3ea
...
@@ -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,),
],
),*/
],
],
),
),
),
),
...
...
lib/pages/user_nick/controller.dart
浏览文件 @
2611e3ea
...
@@ -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
();
}
}
}
}
}
}
lib/pages/user_nick/index.dart
浏览文件 @
2611e3ea
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论