Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/routes/database_route.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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 &&
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down