mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 11:22:16 +08:00
@@ -39,7 +39,7 @@ class AtMeController extends CommonListController<MsgAtData, MsgAtItem> {
|
||||
@pragma('vm:notify-debugger-on-exception')
|
||||
Future<void> onRemove(Object id, int index) async {
|
||||
try {
|
||||
var res = await MsgHttp.delMsgfeed(2, id);
|
||||
final res = await MsgHttp.delMsgfeed(2, id);
|
||||
if (res.isSuccess) {
|
||||
loadingState
|
||||
..value.data!.removeAt(index)
|
||||
|
||||
@@ -84,7 +84,7 @@ class _AtMePageState extends State<AtMePage> {
|
||||
itemCount: 12,
|
||||
itemBuilder: (context, index) => const MsgFeedTopSkeleton(),
|
||||
),
|
||||
Success(:var response) =>
|
||||
Success(:final response) =>
|
||||
response != null && response.isNotEmpty
|
||||
? SliverList.separated(
|
||||
itemCount: response.length,
|
||||
@@ -175,7 +175,7 @@ class _AtMePageState extends State<AtMePage> {
|
||||
separatorBuilder: (context, index) => divider,
|
||||
)
|
||||
: HttpError(onReload: _atMeController.onReload),
|
||||
Error(:var errMsg) => HttpError(
|
||||
Error(:final errMsg) => HttpError(
|
||||
errMsg: errMsg,
|
||||
onReload: _atMeController.onReload,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user