feat: del msg feed

opt: msg feed

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-07 12:24:14 +08:00
parent 99810ef512
commit a5e8594611
10 changed files with 365 additions and 216 deletions

View File

@@ -695,7 +695,9 @@ class Api {
static const String removeMsg = '/session_svr/v1/session_svr/remove_session'; static const String removeMsg = '/session_svr/v1/session_svr/remove_session';
static const String removeSysMsg = '/x/sys-msg/del_notify_list'; static const String delSysMsg = '/x/sys-msg/del_notify_list';
static const String delMsgfeed = '/x/msgfeed/del';
static const String setTop = '/session_svr/v1/session_svr/set_top'; static const String setTop = '/session_svr/v1/session_svr/set_top';

View File

@@ -331,12 +331,41 @@ class MsgHttp {
} }
} }
static Future removeSysMsg( static Future delMsgfeed(
int tp,
dynamic id, dynamic id,
) async { ) async {
String csrf = await Request.getCsrf(); String csrf = await Request.getCsrf();
var res = await Request().post( var res = await Request().post(
HttpString.messageBaseUrl + Api.removeSysMsg, Api.delMsgfeed,
data: {
'tp': tp,
'id': id,
'build': 0,
'mobi_app': 'web',
'csrf_token': csrf,
'csrf': csrf,
},
options: Options(
contentType: Headers.formUrlEncodedContentType,
),
);
if (res.data['code'] == 0) {
return {'status': true};
} else {
return {
'status': false,
'msg': res.data['message'],
};
}
}
static Future delSysMsg(
dynamic id,
) async {
String csrf = await Request.getCsrf();
var res = await Request().post(
HttpString.messageBaseUrl + Api.delSysMsg,
queryParameters: { queryParameters: {
'mobi_app': 'android', 'mobi_app': 'android',
'csrf': csrf, 'csrf': csrf,

View File

@@ -3,6 +3,7 @@ import 'package:PiliPlus/pages/common/common_controller.dart';
import 'package:PiliPlus/utils/extension.dart'; import 'package:PiliPlus/utils/extension.dart';
import 'package:PiliPlus/http/msg.dart'; import 'package:PiliPlus/http/msg.dart';
import 'package:PiliPlus/models/msg/msgfeed_at_me.dart'; import 'package:PiliPlus/models/msg/msgfeed_at_me.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
class AtMeController extends CommonController { class AtMeController extends CommonController {
int cursor = -1; int cursor = -1;
@@ -40,4 +41,18 @@ class AtMeController extends CommonController {
@override @override
Future<LoadingState> customGetData() => Future<LoadingState> customGetData() =>
MsgHttp.msgFeedAtMe(cursor: cursor, cursorTime: cursorTime); MsgHttp.msgFeedAtMe(cursor: cursor, cursorTime: cursorTime);
Future onRemove(dynamic id, int index) async {
try {
var res = await MsgHttp.delMsgfeed(2, id);
if (res['status']) {
List list = (loadingState.value as Success).response;
list.removeAt(index);
loadingState.value = LoadingState.success(list);
SmartDialog.showToast('删除成功');
} else {
SmartDialog.showToast(res['msg']);
}
} catch (_) {}
}
} }

View File

@@ -1,3 +1,4 @@
import 'package:PiliPlus/common/widgets/dialog.dart';
import 'package:PiliPlus/common/widgets/loading_widget.dart'; import 'package:PiliPlus/common/widgets/loading_widget.dart';
import 'package:PiliPlus/common/widgets/network_img_layer.dart'; import 'package:PiliPlus/common/widgets/network_img_layer.dart';
import 'package:PiliPlus/common/widgets/refresh_indicator.dart'; import 'package:PiliPlus/common/widgets/refresh_indicator.dart';
@@ -47,42 +48,65 @@ class _AtMePageState extends State<AtMePage> {
if (index == loadingState.response.length - 1) { if (index == loadingState.response.length - 1) {
_atMeController.onLoadMore(); _atMeController.onLoadMore();
} }
final item = loadingState.response[index];
return ListTile( return ListTile(
onTap: () { onTap: () {
String? nativeUri = String? nativeUri = item.item?.nativeUri;
loadingState.response[index].item?.nativeUri;
if (nativeUri != null) { if (nativeUri != null) {
PiliScheme.routePushFromUrl(nativeUri); PiliScheme.routePushFromUrl(nativeUri);
} }
}, },
onLongPress: () {
showConfirmDialog(
context: context,
title: '确定删除该通知?',
onConfirm: () {
_atMeController.onRemove(item.id, index);
},
);
},
leading: GestureDetector( leading: GestureDetector(
onTap: () { onTap: () {
Get.toNamed( Get.toNamed('/member?mid=${item.user?.mid}');
'/member?mid=${loadingState.response[index].user?.mid}');
}, },
child: NetworkImgLayer( child: NetworkImgLayer(
width: 45, width: 45,
height: 45, height: 45,
type: 'avatar', type: 'avatar',
src: loadingState.response[index].user?.avatar, src: item.user?.avatar,
), ),
), ),
title: Text( title: Text.rich(
"${loadingState.response[index].user?.nickname} " TextSpan(
"${loadingState.response[index].item?.business}中@了我", children: [
style: Theme.of(context).textTheme.bodyMedium!.copyWith( TextSpan(
color: Theme.of(context).colorScheme.primary, text: "${item.user?.nickname}",
style: Theme.of(context)
.textTheme
.titleSmall!
.copyWith(
color: Theme.of(context).colorScheme.primary,
),
), ),
TextSpan(
text: "${item.item?.business}中@了我",
style:
Theme.of(context).textTheme.titleSmall!.copyWith(
color: Theme.of(context)
.colorScheme
.onSurfaceVariant,
),
),
],
),
), ),
subtitle: Column( subtitle: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
if ((loadingState.response[index].item?.sourceContent if ((item.item?.sourceContent as String?)?.isNotEmpty ==
as String?)
?.isNotEmpty ==
true) ...[ true) ...[
const SizedBox(height: 4), const SizedBox(height: 4),
Text(loadingState.response[index].item?.sourceContent, Text(item.item?.sourceContent,
maxLines: 3, maxLines: 3,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: Theme.of(context) style: Theme.of(context)
@@ -94,20 +118,20 @@ class _AtMePageState extends State<AtMePage> {
], ],
const SizedBox(height: 4), const SizedBox(height: 4),
Text( Text(
Utils.dateFormat(loadingState.response[index].atTime), Utils.dateFormat(item.atTime),
style: Theme.of(context).textTheme.bodyMedium!.copyWith( style: Theme.of(context).textTheme.bodyMedium!.copyWith(
fontSize: 13,
color: Theme.of(context).colorScheme.outline, color: Theme.of(context).colorScheme.outline,
), ),
), ),
], ],
), ),
trailing: loadingState.response[index].item?.image != null && trailing: item.item?.image != null && item.item?.image != ""
loadingState.response[index].item?.image != ""
? NetworkImgLayer( ? NetworkImgLayer(
width: 45, width: 45,
height: 45, height: 45,
type: 'cover', type: 'cover',
src: loadingState.response[index].item?.image, src: item.item?.image,
) )
: null, : null,
); );

View File

@@ -4,6 +4,7 @@ import 'package:PiliPlus/pages/common/common_controller.dart';
import 'package:PiliPlus/http/msg.dart'; import 'package:PiliPlus/http/msg.dart';
import 'package:PiliPlus/utils/extension.dart'; import 'package:PiliPlus/utils/extension.dart';
import 'package:PiliPlus/models/msg/msgfeed_like_me.dart'; import 'package:PiliPlus/models/msg/msgfeed_like_me.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
class LikeMeController extends CommonController { class LikeMeController extends CommonController {
int cursor = -1; int cursor = -1;
@@ -47,4 +48,23 @@ class LikeMeController extends CommonController {
@override @override
Future<LoadingState> customGetData() => Future<LoadingState> customGetData() =>
MsgHttp.msgFeedLikeMe(cursor: cursor, cursorTime: cursorTime); MsgHttp.msgFeedLikeMe(cursor: cursor, cursorTime: cursorTime);
Future onRemove(dynamic id, int index, bool isLatest) async {
try {
var res = await MsgHttp.delMsgfeed(0, id);
if (res['status']) {
Pair<List<LikeMeItems>, List<LikeMeItems>> pair =
(loadingState.value as Success).response;
if (isLatest) {
pair.first.removeAt(index);
} else {
pair.second.removeAt(index);
}
loadingState.value = LoadingState.success(pair);
SmartDialog.showToast('删除成功');
} else {
SmartDialog.showToast(res['msg']);
}
} catch (_) {}
}
} }

View File

@@ -1,3 +1,4 @@
import 'package:PiliPlus/common/widgets/dialog.dart';
import 'package:PiliPlus/common/widgets/loading_widget.dart'; import 'package:PiliPlus/common/widgets/loading_widget.dart';
import 'package:PiliPlus/common/widgets/pair.dart'; import 'package:PiliPlus/common/widgets/pair.dart';
import 'package:PiliPlus/common/widgets/refresh_indicator.dart'; import 'package:PiliPlus/common/widgets/refresh_indicator.dart';
@@ -42,165 +43,71 @@ class _LikeMePageState extends State<LikeMePage> {
Success() => () { Success() => () {
Pair<List<LikeMeItems>, List<LikeMeItems>> pair = Pair<List<LikeMeItems>, List<LikeMeItems>> pair =
loadingState.response; loadingState.response;
List<LikeMeItems> latest = pair.first;
int length = pair.first.length + pair.second.length; List<LikeMeItems> total = pair.second;
if (pair.first.isNotEmpty) { if (latest.isNotEmpty || total.isNotEmpty) {
length++; return CustomScrollView(
} physics: const AlwaysScrollableScrollPhysics(),
if (pair.second.isNotEmpty) { slivers: [
length++; if (latest.isNotEmpty) ...[
} _buildHeader('最新'),
SliverList.separated(
LikeMeItems getCurrentItem(int index) { itemBuilder: (context, index) {
if (pair.first.isEmpty) { if (total.isEmpty && index == latest.length - 1) {
return pair.second[index - 1]; _likeMeController.onLoadMore();
} else { }
return index <= pair.first.length return _buildItem(
? pair.first[index - 1] latest[index],
: pair.second[index - pair.first.length - 2]; (id) {
} _likeMeController.onRemove(id, index, true);
} },
return length > 0
? ListView.separated(
itemCount: length,
padding: EdgeInsets.only(
bottom: MediaQuery.paddingOf(context).bottom + 80),
physics: const AlwaysScrollableScrollPhysics(),
itemBuilder: (context, int index) {
if (index == length - 1) {
_likeMeController.onLoadMore();
}
// title
if (index == 0) {
return Padding(
padding: const EdgeInsets.only(left: 16),
child: Text(
pair.first.isNotEmpty ? '最新' : '累计',
style: Theme.of(context)
.textTheme
.labelLarge!
.copyWith(
color: Theme.of(context).colorScheme.secondary,
),
),
); );
} else if (pair.first.isNotEmpty && },
index == pair.first.length + 1) { itemCount: latest.length,
return Padding( separatorBuilder: (BuildContext context, int index) {
padding: const EdgeInsets.only(left: 16), return Divider(
child: Text( indent: 72,
"累计", endIndent: 20,
style: Theme.of(context) height: 6,
.textTheme color: Colors.grey.withOpacity(0.1),
.labelLarge!
.copyWith(
color: Theme.of(context).colorScheme.secondary,
),
),
); );
} },
),
// item ],
final item = getCurrentItem(index); if (total.isNotEmpty) ...[
return ListTile( _buildHeader('累计'),
onTap: () { SliverList.separated(
String? nativeUri = item.item?.nativeUri; itemBuilder: (context, index) {
if (nativeUri != null) { if (index == total.length - 1) {
PiliScheme.routePushFromUrl(nativeUri); _likeMeController.onLoadMore();
} }
}, return _buildItem(
leading: Column( total[index],
children: [ (id) {
const Spacer(), _likeMeController.onRemove(id, index, false);
SizedBox( },
width: 50, );
height: 50, },
child: Stack( itemCount: total.length,
children: [ separatorBuilder: (BuildContext context, int index) {
for (var j = 0; return Divider(
j < item.users!.length && j < 4; indent: 72,
j++) ...<Widget>[ endIndent: 20,
Positioned( height: 6,
left: 15 * (j % 2).toDouble(), color: Colors.grey.withOpacity(0.1),
top: 15 * (j ~/ 2).toDouble(), );
child: NetworkImgLayer( },
width: ),
item.users!.length > 1 ? 30 : 45, ],
height: SliverToBoxAdapter(
item.users!.length > 1 ? 30 : 45, child: SizedBox(
type: 'avatar', height: MediaQuery.paddingOf(context).bottom + 80,
src: item.users![j].avatar, ),
)), ),
] ],
], );
)), }
const Spacer(), return scrollErrorWidget(callback: _likeMeController.onReload);
],
),
title: Text(
// "${msgFeedLikeMeList[i].users!.map((e) => e.nickname).join("/")}"
"${item.users?[0].nickname}"
"${item.users!.length > 1 ? '${item.users![1].nickname} 等' : ''} "
"${item.counts! > 1 ? '${item.counts} 人' : ''}"
"赞了我的${item.item?.business}",
style: Theme.of(context).textTheme.titleSmall!.copyWith(
height: 1.5,
color: Theme.of(context).colorScheme.primary),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
subtitle: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (item.item?.title?.isNotEmpty == true) ...[
const SizedBox(height: 4),
Text(item.item!.title!,
maxLines: 3,
overflow: TextOverflow.ellipsis,
style: Theme.of(context)
.textTheme
.bodyMedium!
.copyWith(
color: Theme.of(context)
.colorScheme
.outline,
height: 1.5)),
],
const SizedBox(height: 4),
Text(
Utils.dateFormat(item.likeTime),
style: Theme.of(context)
.textTheme
.bodyMedium!
.copyWith(
color: Theme.of(context).colorScheme.outline,
),
),
],
),
trailing:
item.item?.image != null && item.item?.image != ""
? NetworkImgLayer(
width: 45,
height: 45,
type: 'cover',
src: item.item?.image,
)
: null,
);
},
separatorBuilder: (BuildContext context, int index) {
return Divider(
indent: 72,
endIndent: 20,
height: 6,
color: Colors.grey.withOpacity(0.1),
);
},
)
: scrollErrorWidget(callback: _likeMeController.onReload);
}(), }(),
Error() => scrollErrorWidget( Error() => scrollErrorWidget(
errMsg: loadingState.errMsg, errMsg: loadingState.errMsg,
@@ -209,4 +116,122 @@ class _LikeMePageState extends State<LikeMePage> {
LoadingState() => throw UnimplementedError(), LoadingState() => throw UnimplementedError(),
}; };
} }
Widget _buildHeader(String title) {
return SliverToBoxAdapter(
child: Padding(
padding: const EdgeInsets.only(left: 16),
child: Text(
title,
style: Theme.of(context).textTheme.labelLarge!.copyWith(
color: Theme.of(context).colorScheme.secondary,
),
),
),
);
}
Widget _buildItem(LikeMeItems item, ValueChanged onRemove) {
return ListTile(
onTap: () {
String? nativeUri = item.item?.nativeUri;
if (nativeUri != null) {
PiliScheme.routePushFromUrl(nativeUri);
}
},
onLongPress: () {
showConfirmDialog(
context: context,
title: '确定删除该通知?',
onConfirm: () {
onRemove(item.id);
},
);
},
leading: Column(
children: [
const Spacer(),
SizedBox(
width: 50,
height: 50,
child: Stack(
children: [
for (var j = 0;
j < item.users!.length && j < 4;
j++) ...<Widget>[
Positioned(
left: 15 * (j % 2).toDouble(),
top: 15 * (j ~/ 2).toDouble(),
child: NetworkImgLayer(
width: item.users!.length > 1 ? 30 : 45,
height: item.users!.length > 1 ? 30 : 45,
type: 'avatar',
src: item.users![j].avatar,
)),
]
],
),
),
const Spacer(),
],
),
title: Text.rich(
TextSpan(
children: [
TextSpan(
text: "${item.users![0].nickname}",
style: Theme.of(context).textTheme.titleSmall!.copyWith(
height: 1.5, color: Theme.of(context).colorScheme.primary),
),
if (item.counts! > 1)
TextSpan(
text: '${item.counts}',
style: Theme.of(context)
.textTheme
.titleSmall!
.copyWith(fontSize: 12, height: 1.5),
),
TextSpan(
text: " 赞了我的${item.item?.business}",
style: Theme.of(context).textTheme.titleSmall!.copyWith(
height: 1.5,
color: Theme.of(context).colorScheme.onSurfaceVariant,
),
),
],
),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
subtitle: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (item.item?.title?.isNotEmpty == true) ...[
const SizedBox(height: 4),
Text(item.item!.title!,
maxLines: 3,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.bodyMedium!.copyWith(
color: Theme.of(context).colorScheme.outline, height: 1.5)),
],
const SizedBox(height: 4),
Text(
Utils.dateFormat(item.likeTime),
style: Theme.of(context).textTheme.bodyMedium!.copyWith(
fontSize: 13,
color: Theme.of(context).colorScheme.outline,
),
),
],
),
trailing: item.item?.image != null && item.item?.image != ""
? NetworkImgLayer(
width: 45,
height: 45,
type: 'cover',
src: item.item?.image,
)
: null,
);
}
} }

View File

@@ -3,6 +3,7 @@ import 'package:PiliPlus/pages/common/common_controller.dart';
import 'package:PiliPlus/utils/extension.dart'; import 'package:PiliPlus/utils/extension.dart';
import 'package:PiliPlus/http/msg.dart'; import 'package:PiliPlus/http/msg.dart';
import 'package:PiliPlus/models/msg/msgfeed_reply_me.dart'; import 'package:PiliPlus/models/msg/msgfeed_reply_me.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
class ReplyMeController extends CommonController { class ReplyMeController extends CommonController {
int cursor = -1; int cursor = -1;
@@ -40,4 +41,18 @@ class ReplyMeController extends CommonController {
@override @override
Future<LoadingState> customGetData() => Future<LoadingState> customGetData() =>
MsgHttp.msgFeedReplyMe(cursor: cursor, cursorTime: cursorTime); MsgHttp.msgFeedReplyMe(cursor: cursor, cursorTime: cursorTime);
Future onRemove(dynamic id, int index) async {
try {
var res = await MsgHttp.delMsgfeed(1, id);
if (res['status']) {
List list = (loadingState.value as Success).response;
list.removeAt(index);
loadingState.value = LoadingState.success(list);
SmartDialog.showToast('删除成功');
} else {
SmartDialog.showToast(res['msg']);
}
} catch (_) {}
}
} }

View File

@@ -1,3 +1,4 @@
import 'package:PiliPlus/common/widgets/dialog.dart';
import 'package:PiliPlus/common/widgets/loading_widget.dart'; import 'package:PiliPlus/common/widgets/loading_widget.dart';
import 'package:PiliPlus/common/widgets/refresh_indicator.dart'; import 'package:PiliPlus/common/widgets/refresh_indicator.dart';
import 'package:PiliPlus/http/loading_state.dart'; import 'package:PiliPlus/http/loading_state.dart';
@@ -59,6 +60,15 @@ class _ReplyMePageState extends State<ReplyMePage> {
); );
} }
}, },
onLongPress: () {
showConfirmDialog(
context: context,
title: '确定删除该通知?',
onConfirm: () {
_replyMeController.onRemove(item.id, index);
},
);
},
leading: GestureDetector( leading: GestureDetector(
onTap: () { onTap: () {
Get.toNamed('/member?mid=${item.user?.mid}'); Get.toNamed('/member?mid=${item.user?.mid}');
@@ -70,13 +80,38 @@ class _ReplyMePageState extends State<ReplyMePage> {
src: item.user?.avatar, src: item.user?.avatar,
), ),
), ),
title: Text( title: Text.rich(
"${item.user?.nickname} ${item.isMulti == 1 ? '等人' : ''}" TextSpan(
"回复了我的${item.item?.business} ${item.isMulti == 1 ? ',共${item.counts}条' : ''}", children: [
style: Theme.of(context) TextSpan(
.textTheme text: "${item.user?.nickname}",
.bodyMedium! style: Theme.of(context)
.copyWith(color: Theme.of(context).colorScheme.primary), .textTheme
.titleSmall!
.copyWith(
color: Theme.of(context).colorScheme.primary),
),
if (item.isMulti == 1)
TextSpan(
text: " 等人",
style: Theme.of(context)
.textTheme
.titleSmall!
.copyWith(fontSize: 12),
),
TextSpan(
text:
" 对我的${item.item?.business}发布了${item.counts}条评论",
style: Theme.of(context)
.textTheme
.titleSmall!
.copyWith(
color: Theme.of(context)
.colorScheme
.onSurfaceVariant),
),
],
),
), ),
subtitle: Column( subtitle: Column(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
@@ -117,6 +152,7 @@ class _ReplyMePageState extends State<ReplyMePage> {
Text( Text(
Utils.dateFormat(item.replyTime), Utils.dateFormat(item.replyTime),
style: Theme.of(context).textTheme.bodyMedium!.copyWith( style: Theme.of(context).textTheme.bodyMedium!.copyWith(
fontSize: 13,
color: Theme.of(context).colorScheme.outline, color: Theme.of(context).colorScheme.outline,
), ),
), ),

View File

@@ -40,7 +40,7 @@ class SysMsgController extends CommonController {
Future onRemove(dynamic id, int index) async { Future onRemove(dynamic id, int index) async {
try { try {
var res = await MsgHttp.removeSysMsg(id); var res = await MsgHttp.delSysMsg(id);
if (res['status']) { if (res['status']) {
List list = (loadingState.value as Success).response; List list = (loadingState.value as Success).response;
list.removeAt(index); list.removeAt(index);

View File

@@ -1,5 +1,6 @@
import 'dart:convert'; import 'dart:convert';
import 'package:PiliPlus/common/widgets/dialog.dart';
import 'package:PiliPlus/common/widgets/loading_widget.dart'; import 'package:PiliPlus/common/widgets/loading_widget.dart';
import 'package:PiliPlus/common/widgets/refresh_indicator.dart'; import 'package:PiliPlus/common/widgets/refresh_indicator.dart';
import 'package:PiliPlus/http/loading_state.dart'; import 'package:PiliPlus/http/loading_state.dart';
@@ -52,7 +53,8 @@ class _SysMsgPageState extends State<SysMsgPage> {
_sysMsgController.onLoadMore(); _sysMsgController.onLoadMore();
} }
String? content = loadingState.response[index].content; final item = loadingState.response[index];
String? content = item.content;
if (content != null) { if (content != null) {
try { try {
dynamic jsonContent = json.decode(content); dynamic jsonContent = json.decode(content);
@@ -64,36 +66,16 @@ class _SysMsgPageState extends State<SysMsgPage> {
return ListTile( return ListTile(
onTap: () {}, onTap: () {},
onLongPress: () { onLongPress: () {
showDialog( showConfirmDialog(
context: context, context: context,
builder: (context) => AlertDialog( title: '确定删除该通知?',
title: const Text('确定删除该通知?'), onConfirm: () {
actions: [ _sysMsgController.onRemove(item.id, index);
TextButton( },
onPressed: Get.back, );
child: Text(
'取消',
style: TextStyle(
color:
Theme.of(context).colorScheme.outline,
),
),
),
TextButton(
onPressed: () {
Get.back();
_sysMsgController.onRemove(
loadingState.response[index].id,
index,
);
},
child: const Text('确定'),
),
],
));
}, },
title: Text( title: Text(
"${loadingState.response[index].title}", "${item.title}",
style: Theme.of(context).textTheme.titleMedium, style: Theme.of(context).textTheme.titleMedium,
), ),
subtitle: Column( subtitle: Column(
@@ -114,13 +96,14 @@ class _SysMsgPageState extends State<SysMsgPage> {
SizedBox( SizedBox(
width: double.infinity, width: double.infinity,
child: Text( child: Text(
"${loadingState.response[index].timeAt}", "${item.timeAt}",
maxLines: 1, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: Theme.of(context) style: Theme.of(context)
.textTheme .textTheme
.bodyMedium! .bodyMedium!
.copyWith( .copyWith(
fontSize: 13,
color: Theme.of(context).colorScheme.outline, color: Theme.of(context).colorScheme.outline,
), ),
textAlign: TextAlign.end, textAlign: TextAlign.end,