mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
@@ -66,7 +66,7 @@ class _ReplyPageState extends CommonRichTextPubPageState<LiveSendDmPanel> {
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
...buildInputView(theme),
|
||||
buildPanelContainer(theme, Colors.transparent),
|
||||
Flexible(child: buildPanelContainer(theme, Colors.transparent)),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -177,7 +177,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
final size = MediaQuery.sizeOf(context);
|
||||
maxWidth = size.width;
|
||||
maxHeight = size.height;
|
||||
isPortrait = maxHeight >= maxWidth;
|
||||
isPortrait = size.isPortrait;
|
||||
if (Platform.isAndroid) {
|
||||
return Floating().isPipMode
|
||||
? videoPlayerPanel(
|
||||
|
||||
@@ -192,13 +192,16 @@ class LiveRoomChatPanel extends StatelessWidget {
|
||||
final uemote = obj.uemote;
|
||||
if (uemote != null) {
|
||||
// "room_{{room_id}}_{{int}}" or "upower_[{{emote}}]"
|
||||
final isUpower = uemote.isUpower;
|
||||
return WidgetSpan(
|
||||
child: NetworkImgLayer(
|
||||
src: uemote.url,
|
||||
type: ImageType.emote,
|
||||
width: uemote.width / devicePixelRatio,
|
||||
width: isUpower ? uemote.width : uemote.width / devicePixelRatio,
|
||||
height: uemote.height == null
|
||||
? null
|
||||
: isUpower
|
||||
? uemote.height!
|
||||
: uemote.height! / devicePixelRatio,
|
||||
semanticsLabel: obj.text,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user