* opt: marquee

* fix: bangumi seek

* opt: post panel

* opt: remove deprecated code

* opt: singleton dynController

* fix: music scheme

* feat: MemberVideo jump keep position

* tweak
This commit is contained in:
My-Responsitories
2025-09-04 20:29:02 +08:00
committed by GitHub
parent e8a674ca2a
commit 172389b12b
51 changed files with 1314 additions and 1227 deletions

View File

@@ -15,8 +15,8 @@ import 'package:PiliPlus/pages/match_info/controller.dart';
import 'package:PiliPlus/pages/video/reply/widgets/reply_item_grpc.dart';
import 'package:PiliPlus/pages/video/reply_reply/view.dart';
import 'package:PiliPlus/utils/date_util.dart';
import 'package:PiliPlus/utils/extension.dart';
import 'package:PiliPlus/utils/page_utils.dart';
import 'package:PiliPlus/utils/utils.dart';
import 'package:easy_debounce/easy_throttle.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
@@ -31,14 +31,17 @@ class MatchInfoPage extends StatefulWidget {
class _MatchInfoPageState extends CommonDynPageState<MatchInfoPage> {
@override
final MatchInfoController controller = Get.put(
MatchInfoController(),
tag: Utils.generateRandomString(8),
final MatchInfoController controller = Get.putOrFind(
MatchInfoController.new,
tag: Get.parameters['cid']!,
);
@override
dynamic get arguments => null;
@override
Offset get fabOffset => const Offset(0, 2);
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
@@ -48,7 +51,7 @@ class _MatchInfoPageState extends CommonDynPageState<MatchInfoPage> {
body: refreshIndicator(
onRefresh: controller.onRefresh,
child: CustomScrollView(
controller: controller.scrollController,
controller: scrollController,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
Obx(() => _buildInfo(theme, controller.infoState.value)),
@@ -61,7 +64,7 @@ class _MatchInfoPageState extends CommonDynPageState<MatchInfoPage> {
),
),
floatingActionButton: SlideTransition(
position: controller.fabAnim,
position: fabAnim,
child: replyButton,
),
);