add veilid flutter plugin skeleton

This commit is contained in:
John Smith
2022-01-16 11:19:01 -05:00
parent 268e280914
commit 7877be5edd
156 changed files with 5105 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:veilid/veilid.dart';
void main() {
const MethodChannel channel = MethodChannel('veilid');
TestWidgetsFlutterBinding.ensureInitialized();
setUp(() {
channel.setMockMethodCallHandler((MethodCall methodCall) async {
return '42';
});
});
tearDown(() {
channel.setMockMethodCallHandler(null);
});
test('getPlatformVersion', () async {
expect(await Veilid.platformVersion, '42');
});
}