Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

feat: revert some changes

st1020280596e99b2b
diff --git a/lib/pages/video/video_page.dart b/lib/pages/video/video_page.dart
index 9a3b48e8..4b21089b 100644
--- a/lib/pages/video/video_page.dart
+++ b/lib/pages/video/video_page.dart
@@ -176,28 +176,24 @@ class _VideoPageState extends State<VideoPage>
height: double.infinity,
),
),
- SlideTransition(
- position: _rightOffsetAnimation,
- child: SizedBox(
- height: MediaQuery.of(context).size.height,
- width: MediaQuery.of(context).size.width *
- 1 /
- 3 >
- 420
+ SlideTransition(position: _rightOffsetAnimation,
+ child: SizedBox(
+ height: MediaQuery.of(context).size.height,
+ width: MediaQuery.of(context).size.width * 1 / 3 > 420
? 420
: MediaQuery.of(context).size.width * 1 / 3,
- child: Container(
- color: Theme.of(context).canvasColor,
- child: GridViewObserver(
- controller: observerController,
- child: Column(
- children: [
- tabBar,
- tabBody,
- ],
- ),
- ))))
- ]
+ child: Container(
+ color: Theme.of(context).canvasColor,
+ child: GridViewObserver(
+ controller: observerController,
+ child: Column(
+ children: [
+ tabBar,
+ tabBody,
+ ],
+ ),
+ )))
+ )]
],
)
: (!videoPageController.androidFullscreen)
@@ -205,8 +201,7 @@ class _VideoPageState extends State<VideoPage>
children: [
Container(
color: Colors.black,
- height:
- MediaQuery.of(context).size.width * 9 / 16,
+ height: MediaQuery.of(context).size.width * 9 / 16,
width: MediaQuery.of(context).size.width,
child: playerBody),
Expanded(
@@ -238,23 +233,22 @@ class _VideoPageState extends State<VideoPage>
height: double.infinity,
),
),
- SlideTransition(
- position: _rightOffsetAnimation,
- child: SizedBox(
- height: MediaQuery.of(context).size.height,
- width: MediaQuery.of(context).size.height,
- child: Container(
- color: Theme.of(context).canvasColor,
- child: GridViewObserver(
- controller: observerController,
- child: Column(
- children: [
- tabBar,
- tabBody,
- ],
- ),
- ))))
- ]
+ SlideTransition(position: _rightOffsetAnimation,
+ child: SizedBox(
+ height: MediaQuery.of(context).size.height,
+ width: MediaQuery.of(context).size.height,
+ child: Container(
+ color: Theme.of(context).canvasColor,
+ child: GridViewObserver(
+ controller: observerController,
+ child: Column(
+ children: [
+ tabBar,
+ tabBody,
+ ],
+ ),
+ )))
+ )]
]),
),
);
@@ -371,26 +365,20 @@ class _VideoPageState extends State<VideoPage>
child: SizedBox(height: 40))),
IconButton(
icon: const Icon(
- Icons.refresh_outlined,
- color: Colors.white,
- ),
+ Icons.refresh_outlined,
+ color: Colors.white),
onPressed: () {
- videoPageController.changeEpisode(
- videoPageController.currentEpisode,
- currentRoad:
- videoPageController.currentRoad);
+ videoPageController.changeEpisode(videoPageController.currentEpisode, currentRoad: videoPageController.currentRoad);
},
),
Visibility(
- visible:
- Utils.isDesktop() || Utils.isTablet(),
- child: IconButton(
- onPressed: () {
- videoPageController.showTabBody =
- !videoPageController.showTabBody;
+ visible: Utils.isDesktop() || Utils.isTablet(),
+ child: IconButton(
+ onPressed: () {
+ videoPageController.showTabBody = !videoPageController.showTabBody;
openTabBodyAnimated();
},
- icon: Icon(
+ icon: Icon(
videoPageController.showTabBody
? Icons.menu_open
: Icons.menu_open_outlined,
@@ -419,9 +407,7 @@ class _VideoPageState extends State<VideoPage>
child: (!videoPageController.currentPlugin.useNativePlayer ||
playerController.loading)
? Container()
- : PlayerItem(
- openMenu: openTabBodyAnimated,
- locateEpisode: menuJumpToCurrentEpisode),
+ : PlayerItem(openMenu: openTabBodyAnimated, locateEpisode: menuJumpToCurrentEpisode),
),
/// workaround for webview_windows