You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
}
gif解析 bytes 397365
gif解析错误 RangeError (index): Index out of range: index should be less than 157728: 157728
gif解析错误 stacktrace #0 Uint8List.[]= (dart:typed_data-patch/typed_data_patch.dart:2280:7)
The text was updated successfully, but these errors were encountered:
} gif解析 bytes 397365 gif解析错误 RangeError (index): Index out of range: index should be less than 157728: 157728 gif解析错误 stacktrace #0 Uint8List.[]= (dart:typed_data-patch/typed_data_patch.dart:2280:7)
getGifFrameCount() async {
try{
ByteData data = await getData(); // 从资产中读取文件
Uint8List bytes = data.buffer.asUint8List(); // 转换为 Uint8List
// 检查数据大小是否合理
if (bytes.length < 100) {
debugPrint('gif解析错误 data is too small, may be corrupted.');
return;
}
debugPrint('gif解析bytes ${bytes.length}');
}
gif解析 bytes 397365
gif解析错误 RangeError (index): Index out of range: index should be less than 157728: 157728
gif解析错误 stacktrace #0 Uint8List.[]= (dart:typed_data-patch/typed_data_patch.dart:2280:7)
The text was updated successfully, but these errors were encountered: