feat: custom spring (#304)

This commit is contained in:
My-Responsitories
2025-02-22 09:56:36 +00:00
committed by GitHub
parent 6506afa732
commit b2c520bd91
14 changed files with 121 additions and 4 deletions

View File

@@ -50,6 +50,7 @@ import 'package:screen_brightness/screen_brightness.dart';
import '../../../services/shutdown_timer_service.dart';
import 'widgets/header_control.dart';
import 'package:PiliPlus/common/widgets/spring_physics.dart';
class VideoDetailPage extends StatefulWidget {
const VideoDetailPage({super.key});
@@ -621,7 +622,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
),
Expanded(
child: TabBarView(
physics: const ClampingScrollPhysics(),
physics: customTabBarViewScrollPhysics,
controller: videoDetailController.tabCtr,
children: [
videoIntro(),
@@ -672,7 +673,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
buildTabbar(showReply: videoDetailController.showReply),
Expanded(
child: TabBarView(
physics: const ClampingScrollPhysics(),
physics: customTabBarViewScrollPhysics,
controller: videoDetailController.tabCtr,
children: [
videoIntro(),
@@ -772,6 +773,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
),
Expanded(
child: TabBarView(
physics: customTabBarViewScrollPhysics,
controller: videoDetailController.tabCtr,
children: [
if (videoDetailController.showReply)
@@ -881,7 +883,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
),
Expanded(
child: TabBarView(
physics: const ClampingScrollPhysics(),
physics: customTabBarViewScrollPhysics,
controller: videoDetailController.tabCtr,
children: [
if (videoDetailController.videoType ==