mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-15 05:33:59 +08:00
custom fullscreen sc width
Closes #1910 Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -20,13 +20,13 @@ class SuperChatCard extends StatefulWidget {
|
||||
required this.item,
|
||||
this.onRemove,
|
||||
this.persistentSC = false,
|
||||
required this.onReport,
|
||||
this.onReport,
|
||||
});
|
||||
|
||||
final SuperChatItem item;
|
||||
final VoidCallback? onRemove;
|
||||
final bool persistentSC;
|
||||
final VoidCallback onReport;
|
||||
final VoidCallback? onReport;
|
||||
|
||||
@override
|
||||
State<SuperChatCard> createState() => _SuperChatCardState();
|
||||
@@ -168,6 +168,7 @@ class _SuperChatCardState extends State<SuperChatCard> {
|
||||
}
|
||||
|
||||
return Column(
|
||||
mainAxisSize: .min,
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
GestureDetector(
|
||||
|
||||
@@ -46,6 +46,7 @@ import 'package:PiliPlus/utils/platform_utils.dart';
|
||||
import 'package:PiliPlus/utils/share_utils.dart';
|
||||
import 'package:PiliPlus/utils/storage.dart';
|
||||
import 'package:PiliPlus/utils/storage_key.dart';
|
||||
import 'package:PiliPlus/utils/storage_pref.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:canvas_danmaku/canvas_danmaku.dart';
|
||||
@@ -65,6 +66,7 @@ class LiveRoomPage extends StatefulWidget {
|
||||
|
||||
class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
with WidgetsBindingObserver, RouteAware, RouteAwareMixin {
|
||||
late final fullScreenSCWidth = Pref.fullScreenSCWidth;
|
||||
final String heroTag = Utils.generateRandomString(6);
|
||||
late final LiveRoomController _liveRoomController;
|
||||
late final PlPlayerController plPlayerController;
|
||||
@@ -322,7 +324,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
Positioned(
|
||||
left: padding.left + 25,
|
||||
bottom: 25,
|
||||
width: 255,
|
||||
width: fullScreenSCWidth,
|
||||
child: Obx(() {
|
||||
final item = _liveRoomController.fsSC.value;
|
||||
if (item == null) {
|
||||
|
||||
Reference in New Issue
Block a user