mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: sealed LoadingState (#765)
This commit is contained in:
committed by
GitHub
parent
d4d1602b45
commit
bb6bd95e9b
@@ -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(),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -179,7 +179,6 @@ class _NoteListPageState extends CommonSlidePageState<NoteListPage> {
|
||||
)
|
||||
: errWidget(),
|
||||
Error() => errWidget(loadingState.errMsg),
|
||||
LoadingState() => throw UnimplementedError(),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,6 @@ class _RelatedVideoPanelState extends State<RelatedVideoPanel>
|
||||
errMsg: loadingState.errMsg,
|
||||
onReload: _relatedController.onReload,
|
||||
),
|
||||
LoadingState() => throw UnimplementedError(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -266,7 +266,6 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
||||
errMsg: loadingState.errMsg,
|
||||
onReload: _videoReplyController.onReload,
|
||||
),
|
||||
LoadingState() => throw UnimplementedError(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -445,7 +445,6 @@ class _VideoReplyReplyPanelState
|
||||
errMsg: loadingState.errMsg,
|
||||
onReload: _videoReplyReplyController.onReload,
|
||||
),
|
||||
LoadingState() => throw UnimplementedError(),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user