chore: rearrange thermion_flutter_ffi src dir

This commit is contained in:
Nick Fisher
2024-10-23 02:22:04 +11:00
parent f080720712
commit 707793c6b2
6 changed files with 8 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ import 'dart:io';
import 'package:thermion_dart/thermion_dart.dart';
import 'package:thermion_dart/thermion_dart.dart' as t;
import 'package:thermion_flutter_ffi/thermion_flutter_method_channel_interface.dart';
import 'package:thermion_flutter_ffi/src/thermion_flutter_method_channel_interface.dart';
import 'package:thermion_flutter_platform_interface/thermion_flutter_platform_interface.dart';
import 'package:logging/logging.dart';
import 'package:thermion_flutter_platform_interface/thermion_flutter_texture.dart';

View File

@@ -1,8 +1,7 @@
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:thermion_dart/thermion_dart.dart';
import 'package:thermion_dart/src/viewer/src/ffi/thermion_viewer_ffi.dart';
import 'package:thermion_flutter_ffi/thermion_flutter_method_channel_interface.dart';
import 'package:thermion_flutter_ffi/src/thermion_flutter_method_channel_interface.dart';
import 'package:thermion_flutter_platform_interface/thermion_flutter_platform_interface.dart';
import 'package:thermion_flutter_platform_interface/thermion_flutter_texture.dart';
import 'package:logging/logging.dart';
@@ -37,6 +36,9 @@ class ThermionFlutterWindows
throw Exception("Only one viewer should be instantiated over the life of the app");
}
_viewer = await super.createViewer(options: options);
_viewer!.onDispose(() async {
_viewer = null;
});
return _viewer!;
}
@@ -52,7 +54,6 @@ class ThermionFlutterWindows
@override
Future<ThermionFlutterWindow> createWindow(int width, int height, int offsetLeft, int offsetTop) async {
var result = await _channel
.invokeMethod("createWindow", [width, height, offsetLeft, offsetLeft]);
@@ -84,8 +85,6 @@ class ThermionFlutterWindowImpl extends ThermionFlutterWindow {
int offsetTop = 0;
final MethodChannel _channel;
ThermionFlutterWindowImpl(this.handle, this._channel, this.viewer);
@override

View File

@@ -1,2 +1,3 @@
export 'thermion_flutter_windows.dart';
export 'thermion_flutter_texture_backed_platform.dart';
library;
export 'src/thermion_flutter_windows.dart';
export 'src/thermion_flutter_texture_backed_platform.dart';