mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-08 11:07:41 +08:00
transparent live dm panel barrier
releted #1944 Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -40,7 +40,7 @@ import 'package:PiliPlus/utils/utils.dart';
|
|||||||
import 'package:PiliPlus/utils/video_utils.dart';
|
import 'package:PiliPlus/utils/video_utils.dart';
|
||||||
import 'package:canvas_danmaku/canvas_danmaku.dart';
|
import 'package:canvas_danmaku/canvas_danmaku.dart';
|
||||||
import 'package:easy_debounce/easy_throttle.dart';
|
import 'package:easy_debounce/easy_throttle.dart';
|
||||||
import 'package:flutter/foundation.dart' show kDebugMode;
|
import 'package:flutter/foundation.dart' show kDebugMode, kReleaseMode;
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
@@ -593,12 +593,13 @@ class LiveRoomController extends GetxController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void onSendDanmaku([bool fromEmote = false]) {
|
void onSendDanmaku([bool fromEmote = false]) {
|
||||||
if (!isLogin) {
|
if (kReleaseMode&& !isLogin) {
|
||||||
SmartDialog.showToast('账号未登录');
|
SmartDialog.showToast('账号未登录');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Get.key.currentState!.push(
|
Get.key.currentState!.push(
|
||||||
PublishRoute(
|
PublishRoute(
|
||||||
|
barrierColor: Colors.transparent,
|
||||||
pageBuilder: (context, animation, secondaryAnimation) {
|
pageBuilder: (context, animation, secondaryAnimation) {
|
||||||
return LiveSendDmPanel(
|
return LiveSendDmPanel(
|
||||||
fromEmote: fromEmote,
|
fromEmote: fromEmote,
|
||||||
|
|||||||
Reference in New Issue
Block a user