fix typos

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-05 11:35:47 +08:00
parent b4a46133be
commit ea52dd4484
51 changed files with 162 additions and 162 deletions

View File

@@ -198,7 +198,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
}
}
} else if (state == AppLifecycleState.paused) {
introController.canelTimer();
introController.cancelTimer();
ctr.showDanmaku = false;
}
}
@@ -231,7 +231,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
}
}
} catch (e) {
if (kDebugMode) debugPrint('handle playe status: $e');
if (kDebugMode) debugPrint('handle player status: $e');
}
if (status == PlayerStatus.completed) {
@@ -343,10 +343,10 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
if (!videoDetailController.isFileSource) {
if (videoDetailController.isUgc) {
ugcIntroController
..canelTimer()
..cancelTimer()
..videoDetail.close();
} else {
pgcIntroController.canelTimer();
pgcIntroController.cancelTimer();
}
}
if (!videoDetailController.horizontalScreen) {
@@ -386,7 +386,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
videoDetailController.positionSubscription?.cancel();
introController.canelTimer();
introController.cancelTimer();
videoDetailController
..playerStatus = plPlayerController?.playerStatus.value
@@ -857,7 +857,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
backgroundColor: Colors.transparent,
body: Column(
children: [
buildTabbar(onTap: videoDetailController.animToTop),
buildTabBar(onTap: videoDetailController.animToTop),
Expanded(
child: videoTabBarView(
controller: videoDetailController.tabCtr,
@@ -926,7 +926,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
buildTabbar(),
buildTabBar(),
Expanded(
child: videoTabBarView(
controller: videoDetailController.tabCtr,
@@ -994,7 +994,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
backgroundColor: Colors.transparent,
body: Column(
children: [
buildTabbar(showIntro: false),
buildTabBar(showIntro: false),
Expanded(
child: videoTabBarView(
controller: videoDetailController.tabCtr,
@@ -1069,7 +1069,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
buildTabbar(
buildTabBar(
introText: '相关视频',
showIntro: videoDetailController.isFileSource
? true
@@ -1161,7 +1161,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
buildTabbar(needIndicator: false),
buildTabBar(needIndicator: false),
Expanded(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
@@ -1419,7 +1419,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
: child;
}
Widget buildTabbar({
Widget buildTabBar({
bool needIndicator = true,
String? introText,
bool showIntro = true,
@@ -1443,7 +1443,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
}
final flag = !needIndicator || tabs.length == 1;
Widget tabbar() => TabBar(
Widget tabBar() => TabBar(
labelColor: flag ? themeData.colorScheme.onSurface : null,
indicator: flag ? const BoxDecoration() : null,
padding: EdgeInsets.zero,
@@ -1507,7 +1507,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
else
Flexible(
flex: tabs.length == 3 ? 2 : 1,
child: tabbar(),
child: tabBar(),
),
Flexible(
flex: 1,