chore: use latest file picker version
This commit is contained in:
parent
879305dead
commit
955db55b8a
2 changed files with 14 additions and 14 deletions
|
|
@ -4,7 +4,7 @@ import 'package:file_picker/file_picker.dart' as fp;
|
|||
class FilePicker implements FilePickerService {
|
||||
@override
|
||||
Future<String?> getDirectoryPath({String? title}) {
|
||||
return fp.FilePicker.getDirectoryPath();
|
||||
return fp.FilePicker.platform.getDirectoryPath();
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -19,7 +19,7 @@ class FilePicker implements FilePickerService {
|
|||
bool withReadStream = false,
|
||||
bool lockParentWindow = false,
|
||||
}) async {
|
||||
final result = await fp.FilePicker.pickFiles(
|
||||
final result = await fp.FilePicker.platform.pickFiles(
|
||||
dialogTitle: dialogTitle,
|
||||
initialDirectory: initialDirectory,
|
||||
type: type,
|
||||
|
|
@ -43,7 +43,7 @@ class FilePicker implements FilePickerService {
|
|||
List<String>? allowedExtensions,
|
||||
bool lockParentWindow = false,
|
||||
}) {
|
||||
return fp.FilePicker.saveFile(
|
||||
return fp.FilePicker.platform.saveFile(
|
||||
dialogTitle: dialogTitle,
|
||||
fileName: fileName,
|
||||
initialDirectory: initialDirectory,
|
||||
|
|
|
|||
|
|
@ -1844,7 +1844,7 @@ class AppFlowyEditorLocalizations {
|
|||
/// `toggle H1`
|
||||
String get cmdToggleH1 {
|
||||
return Intl.message(
|
||||
'toggle into Heading 1',
|
||||
'toggle H1',
|
||||
name: 'cmdToggleH1',
|
||||
desc: '',
|
||||
args: [],
|
||||
|
|
@ -1854,7 +1854,7 @@ class AppFlowyEditorLocalizations {
|
|||
/// `toggle H2`
|
||||
String get cmdToggleH2 {
|
||||
return Intl.message(
|
||||
'toggle into Heading 2',
|
||||
'toggle H2',
|
||||
name: 'cmdToggleH2',
|
||||
desc: '',
|
||||
args: [],
|
||||
|
|
@ -1864,7 +1864,7 @@ class AppFlowyEditorLocalizations {
|
|||
/// `toggle H3`
|
||||
String get cmdToggleH3 {
|
||||
return Intl.message(
|
||||
'toggle into Heading 3',
|
||||
'toggle H3',
|
||||
name: 'cmdToggleH3',
|
||||
desc: '',
|
||||
args: [],
|
||||
|
|
|
|||
Loading…
Reference in a new issue