Browse Source

[flutter] Fix analyzer error in init_web.dart, ignore incorrectly bound types

This is necessary as this source file actually requires the bound C ffi types to link against Opaque from web_ffi. However, the analyzer doesn't trigger inclusion of web_ffi in the generated bindings file, links against dart:ffi instead, and trips.
Mario Zechner 2 years ago
parent
commit
dd14cad0dd

+ 3 - 0
spine-flutter/CHANGELOG.md

@@ -1,3 +1,6 @@
+# 4.2.6
+* Fix analyzer errors, fix code style to adhere to Dart standards.
+
 # 4.2.5
 * Implemented batching of render commands, reducing the number of draw calls. 60/120fps for 100 Spineboys on all platforms.
 

+ 1 - 0
spine-flutter/example/lib/animation_state_events.dart

@@ -1,3 +1,4 @@
+// ignore_for_file: avoid_print
 import 'package:flutter/material.dart';
 import 'package:esotericsoftware_spine_flutter/spine_flutter.dart';
 

+ 1 - 1
spine-flutter/lib/init_web.dart

@@ -1,3 +1,4 @@
+// ignore_for_file: type_argument_not_matching_bounds
 import 'package:flutter/services.dart';
 import 'package:inject_js/inject_js.dart' as js;
 import 'package:web_ffi_fork/web_ffi.dart';
@@ -17,7 +18,6 @@ Future<SpineFlutterFFI> initSpineFlutterFFI() async {
   if (_module == null) {
     Memory.init();
 
-    var v = 0;
     registerOpaqueType<spine_skeleton_wrapper>();
     registerOpaqueType<spine_skeleton_data_wrapper>();
     registerOpaqueType<spine_bone_wrapper>();