opt: img preview action type
This commit is contained in:
@ -5,6 +5,7 @@ import 'package:get/get.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
import 'package:pilipala/http/index.dart';
|
||||
import 'package:pilipala/models/github/latest.dart';
|
||||
import 'package:pilipala/plugin/pl_gallery/index.dart';
|
||||
import 'package:pilipala/utils/utils.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import '../../utils/cache_manage.dart';
|
||||
@ -168,7 +169,7 @@ class _AboutPageState extends State<AboutPage> {
|
||||
onTap: () => _aboutController.tgChanel(),
|
||||
title: const Text('TG频道'),
|
||||
trailing: Text(
|
||||
'https://t.me/+lm_oOVmF0RJiODk1',
|
||||
'https://t.me/+1DFtqS6usUM5MDNl',
|
||||
style: subTitleStyle,
|
||||
),
|
||||
),
|
||||
@ -321,29 +322,35 @@ class AboutController extends GetxController {
|
||||
// tg频道
|
||||
tgChanel() {
|
||||
Clipboard.setData(
|
||||
const ClipboardData(text: 'https://t.me/+lm_oOVmF0RJiODk1'),
|
||||
const ClipboardData(text: 'https://t.me/+1DFtqS6usUM5MDNl'),
|
||||
);
|
||||
SmartDialog.showToast(
|
||||
'已复制,即将在浏览器打开',
|
||||
displayTime: const Duration(milliseconds: 500),
|
||||
).then(
|
||||
(value) => launchUrl(
|
||||
Uri.parse('https://t.me/+lm_oOVmF0RJiODk1'),
|
||||
Uri.parse('https://t.me/+1DFtqS6usUM5MDNl'),
|
||||
mode: LaunchMode.externalApplication,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
aPay() {
|
||||
try {
|
||||
launchUrl(
|
||||
Uri.parse(
|
||||
'alipayqr://platformapi/startapp?saId=10000007&qrcode=https://qr.alipay.com/fkx14623ddwl1ping3ddd73'),
|
||||
mode: LaunchMode.externalApplication,
|
||||
);
|
||||
} catch (e) {
|
||||
print(e);
|
||||
}
|
||||
const List<String> sources = [
|
||||
'assets/images/pay/wechat.png',
|
||||
'assets/images/pay/alipay.jpg'
|
||||
];
|
||||
Navigator.of(Get.context!).push(
|
||||
HeroDialogRoute<void>(
|
||||
builder: (BuildContext context) => InteractiveviewerGallery(
|
||||
sources: sources,
|
||||
initIndex: 0,
|
||||
itemBuilder: (context, index, isFocus, enablePageView) =>
|
||||
Image.asset(sources[index]),
|
||||
actionType: const [ImgActionType.save],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
// 官网
|
||||
|
||||
Reference in New Issue
Block a user