mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: lint
mod: tweaks opt: publish page Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -74,8 +74,9 @@ class MemberVideoCtr
|
||||
bool customHandleResponse(
|
||||
bool isRefresh, Success<SpaceArchiveData> response) {
|
||||
SpaceArchiveData data = response.response;
|
||||
episodicButton.value = data.episodicButton ?? EpisodicButton();
|
||||
episodicButton.refresh();
|
||||
episodicButton
|
||||
..value = data.episodicButton ?? EpisodicButton()
|
||||
..refresh();
|
||||
next = data.next;
|
||||
if (currentPage == 0 || isLoadPrevious == true) {
|
||||
hasPrev = data.hasPrev;
|
||||
@@ -129,7 +130,7 @@ class MemberVideoCtr
|
||||
includeCursor: isLocating == true && currentPage == 0 ? true : null,
|
||||
);
|
||||
|
||||
queryBySort() {
|
||||
void queryBySort() {
|
||||
if (type == ContributeType.video) {
|
||||
isLocating = null;
|
||||
order.value = order.value == 'pubdate' ? 'click' : 'pubdate';
|
||||
@@ -139,7 +140,7 @@ class MemberVideoCtr
|
||||
onReload();
|
||||
}
|
||||
|
||||
void toViewPlayAll() async {
|
||||
Future<void> toViewPlayAll() async {
|
||||
if (loadingState.value is Success) {
|
||||
List<SpaceArchiveItem>? list = (loadingState.value as Success).response;
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ class _MemberVideoState extends State<MemberVideo>
|
||||
return Obx(() => _buildBody(_controller.loadingState.value));
|
||||
}
|
||||
|
||||
_buildBody(LoadingState<List<SpaceArchiveItem>?> loadingState) {
|
||||
Widget _buildBody(LoadingState<List<SpaceArchiveItem>?> loadingState) {
|
||||
final theme = Theme.of(context);
|
||||
return switch (loadingState) {
|
||||
Loading() => loadingWidget,
|
||||
@@ -74,7 +74,7 @@ class _MemberVideoState extends State<MemberVideo>
|
||||
child: CustomScrollView(
|
||||
physics: PositionRetainedScrollPhysics(
|
||||
shouldRetain: _controller.isLocating == true,
|
||||
parent: ClampingScrollPhysics(),
|
||||
parent: const ClampingScrollPhysics(),
|
||||
),
|
||||
slivers: [
|
||||
SliverPersistentHeader(
|
||||
|
||||
Reference in New Issue
Block a user