mod: lint

mod: tweaks

opt: publish page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-04 11:37:13 +08:00
parent 2cfad80214
commit caa58e9d7d
313 changed files with 2751 additions and 2789 deletions

View File

@@ -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;

View File

@@ -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(