mod: update error widget

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-23 16:16:51 +08:00
parent e0fe16fd14
commit 65eecb8dcf
54 changed files with 106 additions and 115 deletions

View File

@@ -66,11 +66,11 @@ class _MemberArticleState extends State<MemberArticle>
),
)
: scrollErrorWidget(
callback: _controller.onReload,
onReload: _controller.onReload,
),
Error() => scrollErrorWidget(
errMsg: loadingState.errMsg,
callback: _controller.onReload,
onReload: _controller.onReload,
),
LoadingState() => throw UnimplementedError(),
};

View File

@@ -87,11 +87,11 @@ class _MemberBangumiState extends State<MemberBangumi>
),
)
: scrollErrorWidget(
callback: _controller.onReload,
onReload: _controller.onReload,
),
Error() => scrollErrorWidget(
errMsg: loadingState.errMsg,
callback: _controller.onReload,
onReload: _controller.onReload,
),
LoadingState() => throw UnimplementedError(),
};

View File

@@ -67,11 +67,11 @@ class _MemberFavoriteState extends State<MemberFavorite>
),
)
: scrollErrorWidget(
callback: _controller.onReload,
onReload: _controller.onReload,
),
Error() => scrollErrorWidget(
errMsg: loadingState.errMsg,
callback: _controller.onReload,
onReload: _controller.onReload,
),
LoadingState() => throw UnimplementedError(),
};

View File

@@ -92,13 +92,13 @@ class _SeasonSeriesPageState extends State<SeasonSeriesPage>
],
)
: scrollErrorWidget(
callback: () {
onReload: () {
_controller.onReload();
},
),
Error() => scrollErrorWidget(
errMsg: loadingState.errMsg,
callback: () {
onReload: () {
_controller.onReload();
},
),

View File

@@ -224,11 +224,11 @@ class _MemberVideoState extends State<MemberVideo>
],
)
: scrollErrorWidget(
callback: _controller.onReload,
onReload: _controller.onReload,
),
Error() => scrollErrorWidget(
errMsg: loadingState.errMsg,
callback: _controller.onReload,
onReload: _controller.onReload,
),
LoadingState() => throw UnimplementedError(),
};

View File

@@ -264,7 +264,7 @@ class _MemberPageNewState extends State<MemberPageNew> {
Widget _errorWidget(msg) {
return errorWidget(
errMsg: msg,
callback: _userController.onReload,
onReload: _userController.onReload,
);
}

View File

@@ -202,7 +202,7 @@ class _EditProfilePageState extends State<EditProfilePage> {
),
Error() => errorWidget(
errMsg: loadingState.errMsg,
callback: _getInfo,
onReload: _getInfo,
),
LoadingState() => throw UnimplementedError(),
};