mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: lint
mod: tweaks opt: publish page Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -28,7 +28,8 @@ import 'package:get/get.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
class PageUtils {
|
||||
static void pmShare(BuildContext context, {required Map content}) async {
|
||||
static Future<void> pmShare(BuildContext context,
|
||||
{required Map content}) async {
|
||||
// debugPrint(content.toString());
|
||||
|
||||
List<UserModel> userList = <UserModel>[];
|
||||
@@ -155,7 +156,7 @@ class PageUtils {
|
||||
.startShutdownTimer();
|
||||
setState(() {});
|
||||
},
|
||||
child: Text('确定'),
|
||||
child: const Text('确定'),
|
||||
),
|
||||
],
|
||||
);
|
||||
@@ -168,7 +169,7 @@ class PageUtils {
|
||||
shutdownTimerService.startShutdownTimer();
|
||||
}
|
||||
},
|
||||
contentPadding: const EdgeInsets.only(),
|
||||
contentPadding: EdgeInsets.zero,
|
||||
title: Text(choice == -1
|
||||
? '自定义'
|
||||
: choice == 0
|
||||
@@ -199,7 +200,7 @@ class PageUtils {
|
||||
!shutdownTimerService.waitForPlayingCompleted;
|
||||
setState(() {});
|
||||
},
|
||||
contentPadding: const EdgeInsets.only(),
|
||||
contentPadding: EdgeInsets.zero,
|
||||
title: const Text("额外等待视频播放完毕", style: titleStyle),
|
||||
trailing: Transform.scale(
|
||||
alignment: Alignment.centerRight,
|
||||
@@ -342,7 +343,7 @@ class PageUtils {
|
||||
);
|
||||
}
|
||||
|
||||
static void pushDynDetail(DynamicItemModel item, floor,
|
||||
static Future<void> pushDynDetail(DynamicItemModel item, floor,
|
||||
{action = 'all'}) async {
|
||||
feedBack();
|
||||
|
||||
@@ -553,7 +554,7 @@ class PageUtils {
|
||||
}
|
||||
}
|
||||
|
||||
static launchURL(String url) async {
|
||||
static Future<void> launchURL(String url) async {
|
||||
try {
|
||||
final Uri uri = Uri.parse(url);
|
||||
if (!await launchUrl(
|
||||
@@ -567,7 +568,7 @@ class PageUtils {
|
||||
}
|
||||
}
|
||||
|
||||
static void handleWebview(
|
||||
static Future<void> handleWebview(
|
||||
String url, {
|
||||
bool off = false,
|
||||
bool inApp = false,
|
||||
@@ -629,8 +630,8 @@ class PageUtils {
|
||||
transitionBuilder: (context, animation, secondaryAnimation, child) {
|
||||
Offset begin =
|
||||
MediaQuery.orientationOf(Get.context!) == Orientation.portrait
|
||||
? Offset(0.0, 1.0)
|
||||
: Offset(1.0, 0.0);
|
||||
? const Offset(0.0, 1.0)
|
||||
: const Offset(1.0, 0.0);
|
||||
var tween = Tween(begin: begin, end: Offset.zero)
|
||||
.chain(CurveTween(curve: Curves.easeInOut));
|
||||
return SlideTransition(
|
||||
@@ -683,7 +684,7 @@ class PageUtils {
|
||||
return false;
|
||||
}
|
||||
|
||||
static void viewBangumi(
|
||||
static Future<void> viewBangumi(
|
||||
{dynamic seasonId, dynamic epId, dynamic progress}) async {
|
||||
try {
|
||||
SmartDialog.showLoading(msg: '资源获取中');
|
||||
|
||||
Reference in New Issue
Block a user