bump: 0.0.7

This commit is contained in:
Kingtous 2023-02-20 15:42:22 +08:00
parent 4f059a9138
commit 0cda2d38d4
8 changed files with 144 additions and 66 deletions

20
lib/texture_rgba_ffi.dart Normal file
View file

@ -0,0 +1,20 @@
import 'dart:ffi';
typedef F1 = Void Function(
Pointer<Void> ptr, Pointer<Uint8> buffer, Int32 width, Int32 height);
typedef F1Dart = void Function(
Pointer<Void> ptr, Pointer<Uint8> buffer, int width, int height);
class Native {
Native._();
static Native get _instance => Native._()..init();
static Native get instance => _instance;
late F1Dart onRgba;
init() {
final lib = DynamicLibrary.process();
onRgba = lib.lookupFunction<F1, F1Dart>("FlutterRgbaRendererPluginOnRgba");
}
}

View file

@ -1,5 +1,7 @@
import 'dart:typed_data';
export './texture_rgba_ffi.dart';
import 'texture_rgba_renderer_platform_interface.dart';
class TextureRgbaRenderer {

View file

@ -1,7 +1,7 @@
// ignore: unused_import
// ignore: unused_import, unnecessary_import
import 'dart:io';
// Compatible with lint in Flutter 3.0.5
// ignore: unused_import
// ignore: unused_import, unnecessary_import
import 'dart:typed_data';
import 'package:flutter/foundation.dart';