parent
c105a6035c
commit
6e42902322
1 changed files with 11 additions and 9 deletions
|
|
@ -49,6 +49,7 @@ import "package:path_provider/path_provider.dart";
|
||||||
class ClientController extends AsyncNotifier<int> {
|
class ClientController extends AsyncNotifier<int> {
|
||||||
@override
|
@override
|
||||||
Future<int> build() async {
|
Future<int> build() async {
|
||||||
|
final handle = await Isolate.run(() async {
|
||||||
final Pointer<Char> root;
|
final Pointer<Char> root;
|
||||||
if (Platform.isAndroid || Platform.isIOS) {
|
if (Platform.isAndroid || Platform.isIOS) {
|
||||||
final dir = await getApplicationSupportDirectory();
|
final dir = await getApplicationSupportDirectory();
|
||||||
|
|
@ -57,7 +58,8 @@ class ClientController extends AsyncNotifier<int> {
|
||||||
root = nullptr.cast();
|
root = nullptr.cast();
|
||||||
}
|
}
|
||||||
|
|
||||||
final handle = GomuksInit(root);
|
return GomuksInit(root);
|
||||||
|
});
|
||||||
|
|
||||||
final callable =
|
final callable =
|
||||||
NativeCallable<
|
NativeCallable<
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue