Update Android API 35 (#3874)

This commit is contained in:
Dat Dang
2025-07-18 10:15:25 +07:00
committed by GitHub
parent 6f87058459
commit 78cb93ef1c
19 changed files with 191 additions and 128 deletions
+1 -2
View File
@@ -9,7 +9,7 @@ import 'package:flutter_charset_detector/flutter_charset_detector.dart';
import 'package:path_provider/path_provider.dart';
class FileUtils {
static const String DEFAULT_CHARSET = 'uft-8';
static const String DEFAULT_CHARSET = 'utf-8';
static const String TEXT_PLAIN_MIME_TYPE = 'text/plain';
Future<String> _getInternalStorageDirPath({
@@ -140,7 +140,6 @@ class FileUtils {
Future<String> getCharsetFromBytes(Uint8List bytes) async {
try {
if (PlatformInfo.isIOS || PlatformInfo.isMacOS) return DEFAULT_CHARSET;
final decodedResult = await CharsetDetector.autoDecode(bytes);
log('FileUtils::getCharsetFromBytes: FILE_CHARSET = ${decodedResult.charset}');
return decodedResult.charset;