消息列表样式修改 注销页面
This commit is contained in:
@@ -23,12 +23,6 @@ class _MhMessageListWidgetState extends State<MhMessageListWidget> {
|
||||
MhMessageController messageController = Get.find();
|
||||
late RxMap<String, dynamic> messageInfo;
|
||||
|
||||
// @override
|
||||
// void initState() {
|
||||
// super.initState();
|
||||
// messageInfo = Map<String, dynamic>.from(widget.data).obs; // 复制成 obs
|
||||
// }
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
messageInfo = Map<String, dynamic>.from(widget.data).obs;
|
||||
@@ -109,33 +103,6 @@ class _MhMessageListWidgetState extends State<MhMessageListWidget> {
|
||||
enableAnimation: true, // 有点击缩放动画
|
||||
enableGradient: false, // 不用渐变
|
||||
onTap: () async {
|
||||
// if (messageInfo['status'] == 1) {
|
||||
// showConfirmDialog(
|
||||
// context, Container(), "是否确认接受该设备".tr,
|
||||
// onConfirm: () async {
|
||||
// ApiResponse apiResponse =
|
||||
// await deviceShareController.confirmShare(
|
||||
// messageInfo['data']['shareCode']);
|
||||
// if (apiResponse.code == HttpStatusCodes.ok) {
|
||||
// TopSlideNotification.show(
|
||||
// context,
|
||||
// text: apiResponse.msg!,
|
||||
// textColor: themeController.currentColor.sc2,
|
||||
// );
|
||||
// messageController.getMessageList();
|
||||
// messageController.updateAll();
|
||||
// } else {
|
||||
// TopSlideNotification.show(
|
||||
// context,
|
||||
// text: apiResponse.msg!,
|
||||
// textColor: themeController.currentColor.sc9,
|
||||
// );
|
||||
// messageController.getMessageList();
|
||||
// messageController.updateAll();
|
||||
// }
|
||||
// }, onCancel: () {});
|
||||
// }
|
||||
|
||||
await messageController.updateMessageReadStatus(
|
||||
context, messageInfo['type'],
|
||||
mid: messageInfo['_id']);
|
||||
@@ -187,19 +154,18 @@ class _MhMessageListWidgetState extends State<MhMessageListWidget> {
|
||||
|
||||
Widget _buildInfoItem(BuildContext context, String label) {
|
||||
return Container(
|
||||
constraints: BoxConstraints(
|
||||
minHeight: 60.rpx,
|
||||
),
|
||||
constraints: BoxConstraints(minHeight: 60.rpx, maxHeight: 60.rpx),
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(-1, 0),
|
||||
child: Text(
|
||||
label.tr,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
maxLines: 2,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 26.rpx,
|
||||
letterSpacing: 0.0,
|
||||
height: 1,
|
||||
color: themeController.currentColor.sc4,
|
||||
),
|
||||
),
|
||||
@@ -209,15 +175,13 @@ class _MhMessageListWidgetState extends State<MhMessageListWidget> {
|
||||
|
||||
Widget _buildValueItem(BuildContext context, value) {
|
||||
return Container(
|
||||
constraints: BoxConstraints(
|
||||
minHeight: 60.rpx,
|
||||
),
|
||||
constraints: BoxConstraints(minHeight: 60.rpx, maxHeight: 60.rpx),
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(-1, 0),
|
||||
child: Text(
|
||||
"${value}",
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
maxLines: 2,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 26.rpx,
|
||||
|
||||
Reference in New Issue
Block a user