mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
test flutter if practical
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'dart:io' show Platform;
|
||||
import 'dart:ffi';
|
||||
|
||||
void main() {
|
||||
final dylib = Platform.isAndroid ? DynamicLibrary.open('librustdesk.so') : DynamicLibrary.process();
|
||||
final initialize = dylib.lookupFunction<Void Function(), void Function()>('initialize');
|
||||
initialize();
|
||||
// final connect = dylib.lookupFunction<Void Function(Pointer<Utf8>), void Function(Pointer<Utf8>)>('connect');
|
||||
// connect(Utf8.toUtf8('test'));
|
||||
runApp(MyApp());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user