Browse Source

[xdga_directories] Rm todo - registerWith fixed

merge-requests/1/head
Vitaliy Zarubin 2 years ago
parent
commit
dc01b7fdaf
  1. 3
      packages/path_provider/path_provider_aurora/example/lib/main.dart
  2. 1
      packages/path_provider/path_provider_aurora/lib/path_provider_aurora.dart

3
packages/path_provider/path_provider_aurora/example/lib/main.dart

@ -28,9 +28,6 @@ class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
// @todo it's work
PathProviderAurora.registerWith();
// Get directories from path_provider
loadPathDirectory();
}

1
packages/path_provider/path_provider_aurora/lib/path_provider_aurora.dart

@ -6,7 +6,6 @@ import 'package:xdga_directories/xdga_directories.dart' as xdga_directories;
/// This class implements the `package:path_provider` functionality for Aurora.
class PathProviderAurora extends PathProviderPlatform {
/// Registers this class as the default instance of [PathProviderPlatform]
// @todo it's not call dartPluginClass
static void registerWith() {
PathProviderPlatform.instance = PathProviderAurora();
}

Loading…
Cancel
Save