mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-08 20:14:51 +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:
@@ -476,14 +476,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