mod: lint

mod: tweaks

opt: publish page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-04 11:37:13 +08:00
parent 2cfad80214
commit caa58e9d7d
313 changed files with 2751 additions and 2789 deletions

View File

@@ -73,8 +73,9 @@ class _LiveRoomPageState extends State<LiveRoomPage>
}
videoSourceInit();
_futureBuilderFuture = _liveRoomController.queryLiveInfo();
plPlayerController.autoEnterFullscreen();
plPlayerController.addStatusLister(playerListener);
plPlayerController
..autoEnterFullscreen()
..addStatusLister(playerListener);
_listener = plPlayerController.isFullScreen.listen((isFullScreen) {
if (isFullScreen != _isFullScreen) {
_isFullScreen = isFullScreen;
@@ -93,7 +94,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
}
}
void _updateFontSize() async {
Future<void> _updateFontSize() async {
if (Platform.isAndroid) {
_isPipMode =
await const MethodChannel("floating").invokeMethod('inPipAlready');
@@ -125,8 +126,9 @@ class _LiveRoomPageState extends State<LiveRoomPage>
ScreenBrightness().resetApplicationScreenBrightness();
PlPlayerController.setPlayCallBack(null);
_liveRoomController.msgStream?.close();
plPlayerController.removeStatusLister(playerListener);
plPlayerController.dispose();
plPlayerController
..removeStatusLister(playerListener)
..dispose();
super.dispose();
}
@@ -329,10 +331,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
left: 0,
right: 0,
bottom: 0,
child: Padding(
padding: EdgeInsets.only(bottom: 0),
child: _buildInputWidget,
),
child: _buildInputWidget,
),
),
],
@@ -360,13 +359,13 @@ class _LiveRoomPageState extends State<LiveRoomPage>
);
}
final Color _color = Color(0xFFEEEEEE);
final Color _color = const Color(0xFFEEEEEE);
PreferredSizeWidget get _buildAppBar => AppBar(
backgroundColor: Colors.transparent,
foregroundColor: Colors.white,
toolbarHeight: isFullScreen ? 0 : null,
titleTextStyle: TextStyle(color: Colors.white),
titleTextStyle: const TextStyle(color: Colors.white),
title: Obx(
() {
return _liveRoomController.roomInfoH5.value == null
@@ -551,7 +550,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
right: 10,
bottom: 25 + MediaQuery.of(context).padding.bottom,
),
decoration: BoxDecoration(
decoration: const BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(20),
topRight: Radius.circular(20),
@@ -617,7 +616,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
},
transitionDuration: const Duration(milliseconds: 500),
transitionBuilder: (context, animation, secondaryAnimation, child) {
var tween = Tween(begin: Offset(0.0, 1.0), end: Offset.zero)
var tween = Tween(begin: const Offset(0.0, 1.0), end: Offset.zero)
.chain(CurveTween(curve: Curves.linear));
return SlideTransition(
position: animation.drive(tween),