diff --git a/lib/routes/database_route.dart b/lib/routes/database_route.dart index dbc9e88..7243999 100644 --- a/lib/routes/database_route.dart +++ b/lib/routes/database_route.dart @@ -97,7 +97,7 @@ class DatabaseRoute extends StatelessWidget { void doExport(final SecretList secretList) { final String json = OTPSecret.writeToJSON(secretList.otpSecrets); - FilePicker + FilePicker.platform .saveFile( fileName: 'simple_otp.json', allowedExtensions: ['json'], @@ -117,7 +117,7 @@ class DatabaseRoute extends StatelessWidget { void doImport( final SecretList secretList, final void Function(Object) onError) async { try { - FilePickerResult? result = await FilePicker.pickFiles( + FilePickerResult? result = await FilePicker.platform.pickFiles( allowedExtensions: ['json', 'jsn'], ); if (result != null && diff --git a/pubspec.lock b/pubspec.lock index e809d98..09a5eda 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -245,10 +245,10 @@ packages: dependency: "direct main" description: name: file_picker - sha256: b9c6bbfe174bcc1ec1e3a0de92e9b839fe553a46dd91862debfbbb5055ca876f + sha256: "57d9a1dd5063f85fa3107fb42d1faffda52fdc948cefd5fe5ea85267a5fc7343" url: "https://pub.dev" source: hosted - version: "10.3.9" + version: "10.3.10" fixnum: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 876392d..520f378 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -42,7 +42,7 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.6 - file_picker: ^10.3.9 + file_picker: ^10.3.10 http: ^1.6.0 dev_dependencies: