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> {
|
||||
@override
|
||||
Future<int> build() async {
|
||||
final handle = await Isolate.run(() async {
|
||||
final Pointer<Char> root;
|
||||
if (Platform.isAndroid || Platform.isIOS) {
|
||||
final dir = await getApplicationSupportDirectory();
|
||||
|
|
@ -57,7 +58,8 @@ class ClientController extends AsyncNotifier<int> {
|
|||
root = nullptr.cast();
|
||||
}
|
||||
|
||||
final handle = GomuksInit(root);
|
||||
return GomuksInit(root);
|
||||
});
|
||||
|
||||
final callable =
|
||||
NativeCallable<
|
||||
|
|
|
|||
Loading…
Reference in a new issue