mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 10:47:25 +01:00
Move more code from mobile to common
This commit is contained in:
parent
2e4f69a178
commit
5312bad52d
28 changed files with 258 additions and 215 deletions
|
|
@ -4,6 +4,11 @@ import 'package:musicus_common/musicus_common.dart';
|
|||
class MusicusAndroidPlatform extends MusicusPlatform {
|
||||
static const _platform = MethodChannel('de.johrpan.musicus/platform');
|
||||
|
||||
@override
|
||||
Future<String> chooseBasePath() async {
|
||||
return await _platform.invokeMethod<String>('openTree');
|
||||
}
|
||||
|
||||
@override
|
||||
Future<List<Document>> getChildren(String parentId) async {
|
||||
final List<Map<dynamic, dynamic>> childrenJson =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue