mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-07 19:26:54 +08:00
[flutter] spine_flutter.dart -> spine_dart.dart, api.dart in generated pulling in all modules
This commit is contained in:
parent
6ad01acc6a
commit
f85b3c1f19
@ -1455,7 +1455,7 @@ ${declaration} {`;
|
|||||||
lines.push('// Arrays');
|
lines.push('// Arrays');
|
||||||
lines.push(`export 'arrays.dart';`);
|
lines.push(`export 'arrays.dart';`);
|
||||||
|
|
||||||
const filePath = path.join(path.dirname(path.dirname(this.outputDir)), 'lib/generated/spine_dart.dart');
|
const filePath = path.join(path.dirname(path.dirname(this.outputDir)), 'lib/generated/api.dart');
|
||||||
fs.writeFileSync(filePath, lines.join('\n'));
|
fs.writeFileSync(filePath, lines.join('\n'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,7 @@ import 'package:path/path.dart' as path;
|
|||||||
|
|
||||||
import 'ffi_proxy.dart';
|
import 'ffi_proxy.dart';
|
||||||
import 'spine_dart_init.dart' if (dart.library.html) 'spine_flutter_init_web.dart';
|
import 'spine_dart_init.dart' if (dart.library.html) 'spine_flutter_init_web.dart';
|
||||||
import 'spine_flutter.dart';
|
import 'spine_dart.dart';
|
||||||
import 'raw_image_provider.dart';
|
import 'raw_image_provider.dart';
|
||||||
|
|
||||||
export 'spine_widget.dart';
|
export 'spine_widget.dart';
|
||||||
|
|||||||
@ -36,7 +36,7 @@ import 'generated/atlas.dart';
|
|||||||
import 'generated/skeleton_data.dart';
|
import 'generated/skeleton_data.dart';
|
||||||
|
|
||||||
// Export generated classes
|
// Export generated classes
|
||||||
export 'generated/spine_dart.dart';
|
export 'generated/api.dart';
|
||||||
|
|
||||||
Future<void> initSpineFlutter({bool useStaticLinkage = false, bool enableMemoryDebugging = false}) async {
|
Future<void> initSpineFlutter({bool useStaticLinkage = false, bool enableMemoryDebugging = false}) async {
|
||||||
final ffi = await initSpineDartFFI(useStaticLinkage);
|
final ffi = await initSpineDartFFI(useStaticLinkage);
|
||||||
@ -34,7 +34,7 @@ import 'package:flutter/scheduler.dart';
|
|||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter/widgets.dart';
|
import 'package:flutter/widgets.dart';
|
||||||
|
|
||||||
import 'spine_flutter.dart';
|
import 'spine_dart.dart';
|
||||||
|
|
||||||
/// Controls how the skeleton of a [SpineWidget] is animated and rendered.
|
/// Controls how the skeleton of a [SpineWidget] is animated and rendered.
|
||||||
///
|
///
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user