yekeskin / flutter_avif

A flutter plugin to view and encode avif images.
https://pub.dev/packages/flutter_avif
MIT License
61 stars 17 forks source link

I want flutter_avif but it have error. #20

Closed ikh2005 closed 1 year ago

ikh2005 commented 1 year ago

I want flutter_avif but it have error. only import did me.

../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:11:8: Error: Dart library 'dart:ffi' is not available on this platform. import 'dart:ffi' as ffi; ^ Context: The unavailable library 'dart:ffi' is imported through these packages:

web_entrypoint.dart => package:withdiary => package:flutter_avif => package:flutter_avif_platform_interface => dart:ffi

Detailed import paths for (some of) the these imports:

web_entrypoint.dart => package:withdiary/main.dart => package:flutter_avif/flutter_avif.dart => package:flutter_avif/src/avif_image.dart => package:flutter_avif_platform_interface/flutter_avif_platform_interface.dart => package:flutter_avif_platform_interface/bridge_generated.dart => dart:ffi
web_entrypoint.dart => package:withdiary/main.dart => package:flutter_avif/flutter_avif.dart => package:flutter_avif/src/avif_encoder.dart => package:flutter_avif_platform_interface/flutter_avif_platform_interface.dart => package:flutter_avif_platform_interface/bridge_generated.dart => dart:ffi

../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:323:23: Error: Type 'ffi.DynamicLibrary' not found. FlutterAvifPlatform(ffi.DynamicLibrary dylib) : super(FlutterAvifWire(dylib)); ^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:328:3: Error: Type 'ffi.Pointer' not found. ffi.Pointer api2wire_String(String raw) { ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:333:3: Error: Type 'ffi.Pointer' not found. ffi.Pointer api2wire_list_encode_frame( ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:348:3: Error: Type 'ffi.Pointer' not found. ffi.Pointer api2wire_uint_8_list(Uint8List raw) { ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:376:43: Error: Type 'ffi.NativeType' not found. final ffi.Pointer Function(String symbolName) ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:376:9: Error: Type 'ffi.Pointer' not found. final ffi.Pointer Function(String symbolName) ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:380:19: Error: Type 'ffi.DynamicLibrary' not found. FlutterAvifWire(ffi.DynamicLibrary dynamicLibrary) ^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:385:41: Error: Type 'ffi.NativeType' not found. ffi.Pointer Function(String symbolName) ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:385:7: Error: Type 'ffi.Pointer' not found. ffi.Pointer Function(String symbolName) ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:446:17: Error: Type 'ffi.Void' not found. ffi.Pointer obj, ^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:446:5: Error: Type 'ffi.Pointer' not found. ffi.Pointer obj, ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:461:5: Error: Type 'ffi.Pointer' not found. ffi.Pointer avif_bytes, ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:479:5: Error: Type 'ffi.Pointer' not found. ffi.Pointer key, ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:480:5: Error: Type 'ffi.Pointer' not found. ffi.Pointer avif_bytes, ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:500:5: Error: Type 'ffi.Pointer' not found. ffi.Pointer key, ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:517:5: Error: Type 'ffi.Pointer' not found. ffi.Pointer key, ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:534:5: Error: Type 'ffi.Pointer' not found. ffi.Pointer key, ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:560:5: Error: Type 'ffi.Pointer' not found. ffi.Pointer image_sequence, ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:595:3: Error: Type 'ffi.Pointer' not found. ffi.Pointer new_list_encode_frame_0( ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:610:3: Error: Type 'ffi.Pointer' not found. ffi.Pointer new_uint_8_list_0( ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:640:28: Error: Type 'ffi.Opaque' not found. class _Dart_Handle extends ffi.Opaque {} ^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:642:32: Error: Type 'ffi.Struct' not found. class wire_uint_8_list extends ffi.Struct { ^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:643:24: Error: Type 'ffi.Uint8' not found. external ffi.Pointer ptr; ^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:643:12: Error: Type 'ffi.Pointer' not found. external ffi.Pointer ptr; ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:649:32: Error: Type 'ffi.Struct' not found. class wire_EncodeFrame extends ffi.Struct { ^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:650:12: Error: Type 'ffi.Pointer' not found. external ffi.Pointer data; ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:656:38: Error: Type 'ffi.Struct' not found. class wire_list_encode_frame extends ffi.Struct { ^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:657:12: Error: Type 'ffi.Pointer' not found. external ffi.Pointer ptr; ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:664:24: Error: Type 'ffi.Bool' not found. ffi.NativeFunction<ffi.Bool Function(DartPort, ffi.Pointer)>>; ^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:664:64: Error: Type 'ffi.Void' not found. ffi.NativeFunction<ffi.Bool Function(DartPort, ffi.Pointer)>>; ^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:664:52: Error: Type 'ffi.Pointer' not found. ffi.NativeFunction<ffi.Bool Function(DartPort, ffi.Pointer)>>; ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:664:5: Error: Type 'ffi.NativeFunction' not found. ffi.NativeFunction<ffi.Bool Function(DartPort, ffi.Pointer)>>; ^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:663:33: Error: Type 'ffi.Pointer' not found. typedef DartPostCObjectFnType = ffi.Pointer< ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:665:20: Error: Type 'ffi.Int64' not found. typedef DartPort = ffi.Int64; ^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:371:7: Error: The non-abstract class 'FlutterAvifWire' is missing implementations for these members:

class FlutterAvifWire implements FlutterRustBridgeWireBase { ^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_rust_bridge-1.72.0/lib/src/ffi/web.dart:96:8: Context: 'FlutterRustBridgeWireBase.storeDartPostCObject' is defined here. void storeDartPostCObject() {} ^^^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:373:24: Error: The class 'DartApiDl' is abstract and can't be instantiated. late final dartApi = DartApiDl(init_frb_dart_api_dl); ^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:398:38: Error: 'Void' isn't a type. _lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>( ^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:398:19: Error: 'NativeFunction' isn't a type. _lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>( ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:412:38: Error: 'Handle' isn't a type. _lookup<ffi.NativeFunction<ffi.Handle Function(ffi.UintPtr)>>( ^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:412:58: Error: 'UintPtr' isn't a type. _lookup<ffi.NativeFunction<ffi.Handle Function(ffi.UintPtr)>>( ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:412:19: Error: 'NativeFunction' isn't a type. _lookup<ffi.NativeFunction<ffi.Handle Function(ffi.UintPtr)>>( ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:426:38: Error: 'Void' isn't a type. _lookup<ffi.NativeFunction<ffi.Void Function(ffi.UintPtr)>>( ^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:426:56: Error: 'UintPtr' isn't a type. _lookup<ffi.NativeFunction<ffi.Void Function(ffi.UintPtr)>>( ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:426:19: Error: 'NativeFunction' isn't a type. _lookup<ffi.NativeFunction<ffi.Void Function(ffi.UintPtr)>>( ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:440:38: Error: 'UintPtr' isn't a type. _lookup<ffi.NativeFunction<ffi.UintPtr Function(ffi.Handle)>>( ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:440:59: Error: 'Handle' isn't a type. _lookup<ffi.NativeFunction<ffi.UintPtr Function(ffi.Handle)>>( ^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:440:19: Error: 'NativeFunction' isn't a type. _lookup<ffi.NativeFunction<ffi.UintPtr Function(ffi.Handle)>>( ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:454:38: Error: 'IntPtr' isn't a type. _lookup<ffi.NativeFunction<ffi.IntPtr Function(ffi.Pointer)>>( ^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:454:70: Error: 'Void' isn't a type. _lookup<ffi.NativeFunction<ffi.IntPtr Function(ffi.Pointer)>>( ^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:454:58: Error: 'Pointer' isn't a type. _lookup<ffi.NativeFunction<ffi.IntPtr Function(ffi.Pointer)>>( ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:454:19: Error: 'NativeFunction' isn't a type. _lookup<ffi.NativeFunction<ffi.IntPtr Function(ffi.Pointer)>>( ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:457:48: Error: 'Void' isn't a type. .asFunction<int Function(ffi.Pointer)>(); ^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:457:36: Error: 'Pointer' isn't a type. .asFunction<int Function(ffi.Pointer)>(); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:471:19: Error: 'Void' isn't a type. ffi.Void Function(ffi.Int64, ffi.Pointer)>>( ^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:471:37: Error: 'Int64' isn't a type. ffi.Void Function(ffi.Int64, ffi.Pointer)>>( ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:471:48: Error: 'Pointer' isn't a type. ffi.Void Function(ffi.Int64, ffi.Pointer)>>( ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:470:15: Error: 'NativeFunction' isn't a type. ffi.NativeFunction< ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:475:46: Error: 'Pointer' isn't a type. .asFunction<void Function(int, ffi.Pointer)>(); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:491:15: Error: 'Void' isn't a type. ffi.Void Function(ffi.Int64, ffi.Pointer, ^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:491:33: Error: 'Int64' isn't a type. ffi.Void Function(ffi.Int64, ffi.Pointer, ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:491:44: Error: 'Pointer' isn't a type. ffi.Void Function(ffi.Int64, ffi.Pointer, ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:492:19: Error: 'Pointer' isn't a type. ffi.Pointer)>>('wire_init_memory_decoder'); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:490:11: Error: 'NativeFunction' isn't a type. ffi.NativeFunction< ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:495:34: Error: 'Pointer' isn't a type. void Function(int, ffi.Pointer, ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:496:19: Error: 'Pointer' isn't a type. ffi.Pointer)>(); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:510:15: Error: 'Void' isn't a type. ffi.Void Function( ^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:511:19: Error: 'Int64' isn't a type. ffi.Int64, ffi.Pointer)>>('wire_reset_decoder'); ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:511:30: Error: 'Pointer' isn't a type. ffi.Int64, ffi.Pointer)>>('wire_reset_decoder'); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:509:11: Error: 'NativeFunction' isn't a type. ffi.NativeFunction< ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:513:42: Error: 'Pointer' isn't a type. .asFunction<void Function(int, ffi.Pointer)>(); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:527:15: Error: 'Void' isn't a type. ffi.Void Function(ffi.Int64, ^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:527:33: Error: 'Int64' isn't a type. ffi.Void Function(ffi.Int64, ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:528:19: Error: 'Pointer' isn't a type. ffi.Pointer)>>('wire_dispose_decoder'); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:526:11: Error: 'NativeFunction' isn't a type. ffi.NativeFunction< ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:530:42: Error: 'Pointer' isn't a type. .asFunction<void Function(int, ffi.Pointer)>(); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:544:15: Error: 'Void' isn't a type. ffi.Void Function(ffi.Int64, ^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:544:33: Error: 'Int64' isn't a type. ffi.Void Function(ffi.Int64, ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:545:19: Error: 'Pointer' isn't a type. ffi.Pointer)>>('wire_get_next_frame'); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:543:11: Error: 'NativeFunction' isn't a type. ffi.NativeFunction< ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:547:42: Error: 'Pointer' isn't a type. .asFunction<void Function(int, ffi.Pointer)>(); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:579:15: Error: 'Void' isn't a type. ffi.Void Function( ^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:580:19: Error: 'Int64' isn't a type. ffi.Int64, ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:581:19: Error: 'Uint32' isn't a type. ffi.Uint32, ^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:582:19: Error: 'Uint32' isn't a type. ffi.Uint32, ^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:583:19: Error: 'Int32' isn't a type. ffi.Int32, ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:584:19: Error: 'Int32' isn't a type. ffi.Int32, ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:585:19: Error: 'Uint64' isn't a type. ffi.Uint64, ^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:586:19: Error: 'Int32' isn't a type. ffi.Int32, ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:587:19: Error: 'Int32' isn't a type. ffi.Int32, ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:588:19: Error: 'Int32' isn't a type. ffi.Int32, ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:589:19: Error: 'Int32' isn't a type. ffi.Int32, ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:590:19: Error: 'Pointer' isn't a type. ffi.Pointer)>>('wire_encode_avif'); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:578:11: Error: 'NativeFunction' isn't a type. ffi.NativeFunction< ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:593:15: Error: 'Pointer' isn't a type. ffi.Pointer)>(); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:605:15: Error: 'Pointer' isn't a type. ffi.Pointer Function( ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:606:19: Error: 'Int32' isn't a type. ffi.Int32)>>('new_list_encode_frame_0'); ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:604:11: Error: 'NativeFunction' isn't a type. ffi.NativeFunction< ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:608:23: Error: 'Pointer' isn't a type. .asFunction<ffi.Pointer Function(int)>(); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:620:15: Error: 'Pointer' isn't a type. ffi.Pointer Function( ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:621:19: Error: 'Int32' isn't a type. ffi.Int32)>>('new_uint_8_list_0'); ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:619:11: Error: 'NativeFunction' isn't a type. ffi.NativeFunction< ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:623:23: Error: 'Pointer' isn't a type. .asFunction<ffi.Pointer Function(int)>(); ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:634:38: Error: 'Void' isn't a type. _lookup<ffi.NativeFunction<ffi.Void Function(WireSyncReturn)>>( ^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:634:19: Error: 'NativeFunction' isn't a type. _lookup<ffi.NativeFunction<ffi.Void Function(WireSyncReturn)>>( ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:431:7: Error: The method 'FlutterAvifWire.new_dart_opaque' has fewer positional arguments than those of overridden method 'FlutterRustBridgeWireBase.new_dart_opaque'. int new_dart_opaque( ^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_rust_bridge-1.72.0/lib/src/ffi/web.dart:111:7: Context: This is the overridden method ('new_dart_opaque'). int new_dart_opaque(Object obj, NativePortType port) { ^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:645:8: Error: Couldn't find constructor 'Int32'. @ffi.Int32() ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:652:8: Error: Couldn't find constructor 'Uint64'. @ffi.Uint64() ^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:659:8: Error: Couldn't find constructor 'Int32'. @ffi.Int32() ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:323:27: Error: 'DynamicLibrary' isn't a type. FlutterAvifPlatform(ffi.DynamicLibrary dylib) : super(FlutterAvifWire(dylib)); ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:376:47: Error: 'NativeType' isn't a type. final ffi.Pointer Function(String symbolName) ^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:376:13: Error: 'Pointer' isn't a type. final ffi.Pointer Function(String symbolName) ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:380:23: Error: 'DynamicLibrary' isn't a type. FlutterAvifWire(ffi.DynamicLibrary dynamicLibrary) ^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:385:45: Error: 'NativeType' isn't a type. ffi.Pointer Function(String symbolName) ^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:385:11: Error: 'Pointer' isn't a type. ffi.Pointer Function(String symbolName) ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:446:21: Error: 'Void' isn't a type. ffi.Pointer obj, ^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:446:9: Error: 'Pointer' isn't a type. ffi.Pointer obj, ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:461:9: Error: 'Pointer' isn't a type. ffi.Pointer avif_bytes, ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:479:9: Error: 'Pointer' isn't a type. ffi.Pointer key, ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:480:9: Error: 'Pointer' isn't a type. ffi.Pointer avif_bytes, ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:500:9: Error: 'Pointer' isn't a type. ffi.Pointer key, ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:517:9: Error: 'Pointer' isn't a type. ffi.Pointer key, ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:534:9: Error: 'Pointer' isn't a type. ffi.Pointer key, ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:560:9: Error: 'Pointer' isn't a type. ffi.Pointer image_sequence, ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:643:28: Error: 'Uint8' isn't a type. external ffi.Pointer ptr; ^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:643:16: Error: 'Pointer' isn't a type. external ffi.Pointer ptr; ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:650:16: Error: 'Pointer' isn't a type. external ffi.Pointer data; ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:657:16: Error: 'Pointer' isn't a type. external ffi.Pointer ptr; ^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:643:35: Error: Only JS interop members may be 'external'. Try removing the 'external' keyword or adding a JS interop annotation. external ffi.Pointer ptr; ^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:646:16: Error: Only JS interop members may be 'external'. Try removing the 'external' keyword or adding a JS interop annotation. external int len; ^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:650:42: Error: Only JS interop members may be 'external'. Try removing the 'external' keyword or adding a JS interop annotation. external ffi.Pointer data; ^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:653:16: Error: Only JS interop members may be 'external'. Try removing the 'external' keyword or adding a JS interop annotation. external int duration_in_timescale; ^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:657:42: Error: Only JS interop members may be 'external'. Try removing the 'external' keyword or adding a JS interop annotation. external ffi.Pointer ptr; ^ ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_avif_platform_interface-1.3.0/lib/bridge_generated.dart:660:16: Error: Only JS interop members may be 'external'. Try removing the 'external' keyword or adding a JS interop annotation. external int len; ^

yekeskin commented 1 year ago

Are you trying to use the plugin on web? This plugin does not support web.