mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[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.
This commit is contained in:
parent
41a43f503e
commit
dd14cad0dd
@ -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,3 +1,4 @@
|
||||
// ignore_for_file: avoid_print
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:esotericsoftware_spine_flutter/spine_flutter.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>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user