remove dispose()/viewer getter from platform interface, rename initialize to createViewer
This commit is contained in:
@@ -9,8 +9,7 @@ abstract class ThermionFlutterPlatform extends PlatformInterface {
|
|||||||
|
|
||||||
static final Object _token = Object();
|
static final Object _token = Object();
|
||||||
|
|
||||||
static late ThermionFlutterPlatform _instance;
|
static late final ThermionFlutterPlatform _instance;
|
||||||
|
|
||||||
static ThermionFlutterPlatform get instance => _instance;
|
static ThermionFlutterPlatform get instance => _instance;
|
||||||
|
|
||||||
static set instance(ThermionFlutterPlatform instance) {
|
static set instance(ThermionFlutterPlatform instance) {
|
||||||
@@ -18,9 +17,7 @@ abstract class ThermionFlutterPlatform extends PlatformInterface {
|
|||||||
_instance = instance;
|
_instance = instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
ThermionViewer get viewer;
|
Future<ThermionViewer> createViewer({String? uberArchivePath});
|
||||||
|
|
||||||
Future initialize({String? uberArchivePath});
|
|
||||||
|
|
||||||
Future<ThermionFlutterTexture?> createTexture(
|
Future<ThermionFlutterTexture?> createTexture(
|
||||||
int width, int height, int offsetLeft, int offsetRight);
|
int width, int height, int offsetLeft, int offsetRight);
|
||||||
@@ -30,5 +27,4 @@ abstract class ThermionFlutterPlatform extends PlatformInterface {
|
|||||||
Future<ThermionFlutterTexture?> resizeTexture(ThermionFlutterTexture texture,
|
Future<ThermionFlutterTexture?> resizeTexture(ThermionFlutterTexture texture,
|
||||||
int width, int height, int offsetLeft, int offsetRight);
|
int width, int height, int offsetLeft, int offsetRight);
|
||||||
|
|
||||||
void dispose();
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user