* mod: pgc episode title

* opt: ColorScheme.of

* mod: mpv api version

* opt: log handler

* opt: ext
This commit is contained in:
My-Responsitories
2026-05-15 01:59:54 +00:00
committed by GitHub
parent 24769e144f
commit b33fdf14af
30 changed files with 99 additions and 191 deletions

View File

@@ -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,