opt: sealed LoadingState (#765)

This commit is contained in:
My-Responsitories
2025-04-27 22:17:36 +08:00
committed by GitHub
parent d4d1602b45
commit bb6bd95e9b
54 changed files with 16 additions and 61 deletions

View File

@@ -117,7 +117,6 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
_controller.getUserInfo();
},
),
LoadingState() => throw UnimplementedError(),
};
}
@@ -232,7 +231,6 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
errMsg: loadingState.errMsg,
onReload: _controller.onReload,
),
LoadingState() => throw UnimplementedError(),
};
}

View File

@@ -179,7 +179,6 @@ class _NoteListPageState extends CommonSlidePageState<NoteListPage> {
)
: errWidget(),
Error() => errWidget(loadingState.errMsg),
LoadingState() => throw UnimplementedError(),
};
}

View File

@@ -60,7 +60,6 @@ class _RelatedVideoPanelState extends State<RelatedVideoPanel>
errMsg: loadingState.errMsg,
onReload: _relatedController.onReload,
),
LoadingState() => throw UnimplementedError(),
};
}
}

View File

@@ -266,7 +266,6 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
errMsg: loadingState.errMsg,
onReload: _videoReplyController.onReload,
),
LoadingState() => throw UnimplementedError(),
};
}
}

View File

@@ -445,7 +445,6 @@ class _VideoReplyReplyPanelState
errMsg: loadingState.errMsg,
onReload: _videoReplyReplyController.onReload,
),
LoadingState() => throw UnimplementedError(),
};
}