mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-17 06:33:59 +08:00
tweaks (#2100)
* mod: pgc episode title * opt: ColorScheme.of * mod: mpv api version * opt: log handler * opt: ext
This commit is contained in:
committed by
GitHub
parent
24769e144f
commit
b33fdf14af
@@ -480,14 +480,14 @@ class _EditProfilePageState extends State<EditProfilePage> {
|
||||
imageQuality: 100,
|
||||
);
|
||||
if (pickedFile != null && mounted) {
|
||||
String? mimeType = lookupMimeType(
|
||||
pickedFile.path,
|
||||
)?.split('/').elementAtOrNull(1);
|
||||
String? imagePath = pickedFile.path;
|
||||
String? mimeType = (pickedFile.mimeType ?? lookupMimeType(imagePath))
|
||||
?.split('/')
|
||||
.elementAtOrNull(1);
|
||||
if (mimeType == 'gif') {
|
||||
SmartDialog.showToast('不能选GIF');
|
||||
return;
|
||||
}
|
||||
String? imagePath = pickedFile.path;
|
||||
if (PlatformUtils.isMobile) {
|
||||
final croppedFile = await ImageCropper.platform.cropImage(
|
||||
sourcePath: imagePath,
|
||||
|
||||
Reference in New Issue
Block a user