mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
opt: video dialog
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -15,7 +15,7 @@ void imageSaveDialog({
|
|||||||
final double imgWidth = min(Get.width, Get.height) - 8 * 2;
|
final double imgWidth = min(Get.width, Get.height) - 8 * 2;
|
||||||
SmartDialog.show(
|
SmartDialog.show(
|
||||||
animationType: SmartAnimationType.centerScale_otherSlide,
|
animationType: SmartAnimationType.centerScale_otherSlide,
|
||||||
builder: (context) => Container(
|
builder: (_) => Container(
|
||||||
width: imgWidth,
|
width: imgWidth,
|
||||||
margin: const EdgeInsets.symmetric(horizontal: StyleString.safeSpace),
|
margin: const EdgeInsets.symmetric(horizontal: StyleString.safeSpace),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
|||||||
@@ -357,9 +357,9 @@ class BangumiIntroController extends CommonController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 分享视频
|
// 分享视频
|
||||||
Future actionShareVideo() async {
|
Future actionShareVideo(context) async {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: Get.context!,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
String videoUrl = '${HttpString.baseUrl}/video/$bvid';
|
String videoUrl = '${HttpString.baseUrl}/video/$bvid';
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
|
|||||||
@@ -522,7 +522,8 @@ class _BangumiInfoState extends State<BangumiInfo>
|
|||||||
),
|
),
|
||||||
ActionItem(
|
ActionItem(
|
||||||
icon: const Icon(FontAwesomeIcons.shareFromSquare),
|
icon: const Icon(FontAwesomeIcons.shareFromSquare),
|
||||||
onTap: () => bangumiIntroController.actionShareVideo(),
|
onTap: () =>
|
||||||
|
bangumiIntroController.actionShareVideo(context),
|
||||||
selectStatus: false,
|
selectStatus: false,
|
||||||
loadingStatus: false,
|
loadingStatus: false,
|
||||||
semanticsLabel: '转发',
|
semanticsLabel: '转发',
|
||||||
@@ -595,7 +596,7 @@ class _BangumiInfoState extends State<BangumiInfo>
|
|||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
ActionRowItem(
|
ActionRowItem(
|
||||||
icon: const Icon(FontAwesomeIcons.share),
|
icon: const Icon(FontAwesomeIcons.share),
|
||||||
onTap: () => bangumiIntroController.actionShareVideo(),
|
onTap: () => bangumiIntroController.actionShareVideo(context),
|
||||||
selectStatus: false,
|
selectStatus: false,
|
||||||
loadingStatus: widget.isLoading,
|
loadingStatus: widget.isLoading,
|
||||||
text: '转发'),
|
text: '转发'),
|
||||||
|
|||||||
@@ -469,9 +469,9 @@ class VideoIntroController extends GetxController
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 分享视频
|
// 分享视频
|
||||||
Future actionShareVideo() async {
|
Future actionShareVideo(context) async {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: Get.context!,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
String videoUrl = '${HttpString.baseUrl}/video/$bvid';
|
String videoUrl = '${HttpString.baseUrl}/video/$bvid';
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
|
|||||||
@@ -934,7 +934,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
),
|
),
|
||||||
ActionItem(
|
ActionItem(
|
||||||
icon: const Icon(FontAwesomeIcons.shareFromSquare),
|
icon: const Icon(FontAwesomeIcons.shareFromSquare),
|
||||||
onTap: () => videoIntroController.actionShareVideo(),
|
onTap: () => videoIntroController.actionShareVideo(context),
|
||||||
selectStatus: false,
|
selectStatus: false,
|
||||||
loadingStatus: widget.loadingStatus,
|
loadingStatus: widget.loadingStatus,
|
||||||
semanticsLabel: '分享',
|
semanticsLabel: '分享',
|
||||||
@@ -1002,7 +1002,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
ActionRowItem(
|
ActionRowItem(
|
||||||
icon: const Icon(FontAwesomeIcons.share),
|
icon: const Icon(FontAwesomeIcons.share),
|
||||||
onTap: () => videoIntroController.actionShareVideo(),
|
onTap: () => videoIntroController.actionShareVideo(context),
|
||||||
selectStatus: false,
|
selectStatus: false,
|
||||||
loadingStatus: widget.loadingStatus,
|
loadingStatus: widget.loadingStatus,
|
||||||
// text: !loadingStatus
|
// text: !loadingStatus
|
||||||
|
|||||||
Reference in New Issue
Block a user