Skip to content

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

fix(danmaku): prevent mobile danmaku send button overflow (#2111)

LiggMax4a92f73ce8f9
diff --git a/lib/pages/video/video_page.dart b/lib/pages/video/video_page.dart
index 14faef5b..9f844e9b 100644
--- a/lib/pages/video/video_page.dart
+++ b/lib/pages/video/video_page.dart
@@ -1165,6 +1165,7 @@ class _VideoPageState extends State<VideoPage>
MediaQuery.sizeOf(context).height) ...[
const Spacer(),
Container(
+ padding: EdgeInsets.symmetric(horizontal: 5, vertical: 2),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(25),
border: Border.all(
@@ -1174,8 +1175,6 @@ class _VideoPageState extends State<VideoPage>
width: 0.5,
),
),
- width: 120,
- height: 31,
child: GestureDetector(
onTap: () {
if (danmakuOn && !videoPageController.loading) {
@@ -1198,13 +1197,12 @@ class _VideoPageState extends State<VideoPage>
: Theme.of(context).disabledColor,
),
),
- Icon(
- Icons.send_rounded,
- size: 20,
- color: danmakuOn
- ? Theme.of(context).hintColor
- : Theme.of(context).disabledColor,
- ),
+ if (danmakuOn)
+ Icon(
+ Icons.send_rounded,
+ size: 20,
+ color: Theme.of(context).hintColor,
+ ),
],
),
),