Project template

This commit is contained in:
Ryan Heise 2019-11-26 01:50:21 +11:00
commit 64dcdc8e9c
84 changed files with 2057 additions and 0 deletions

View file

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