mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
Added some basic test for rive_component. More test will be added in the follow up PR that fix rive_component's issue.
8 lines
180 B
Dart
8 lines
180 B
Dart
import 'dart:io';
|
|
import 'dart:typed_data';
|
|
|
|
ByteData loadFile(String filename) {
|
|
final file = File('./test/$filename');
|
|
return ByteData.sublistView(file.readAsBytesSync());
|
|
}
|