chore: use latest file picker version
This commit is contained in:
parent
879305dead
commit
955db55b8a
7 changed files with 14 additions and 14 deletions
|
|
@ -416,7 +416,7 @@ class _HomePageState extends State<HomePage> {
|
|||
}
|
||||
} else {
|
||||
// for desktop
|
||||
final path = await FilePicker.saveFile(
|
||||
final path = await FilePicker.platform.saveFile(
|
||||
fileName: 'document.${fileType.extension}',
|
||||
);
|
||||
if (path != null) {
|
||||
|
|
@ -444,7 +444,7 @@ class _HomePageState extends State<HomePage> {
|
|||
}
|
||||
|
||||
void _importFile(ExportFileType fileType) async {
|
||||
final result = await FilePicker.pickFiles(
|
||||
final result = await FilePicker.platform.pickFiles(
|
||||
allowMultiple: false,
|
||||
allowedExtensions: [fileType.extension],
|
||||
type: FileType.custom,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
platform :osx, '10.14'
|
||||
platform :osx, '10.15'
|
||||
|
||||
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
|
||||
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
|
||||
|
|
|
|||
|
|
@ -405,7 +405,7 @@
|
|||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.14;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.15;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = macosx;
|
||||
SWIFT_COMPILATION_MODE = wholemodule;
|
||||
|
|
@ -484,7 +484,7 @@
|
|||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.14;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.15;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = macosx;
|
||||
|
|
@ -531,7 +531,7 @@
|
|||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.14;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.15;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = macosx;
|
||||
SWIFT_COMPILATION_MODE = wholemodule;
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ dependencies:
|
|||
google_fonts: ^6.1.0
|
||||
flutter_localizations:
|
||||
sdk: flutter
|
||||
file_picker: ^10.3.0
|
||||
file_picker: ^10.3.10
|
||||
universal_html: ^2.0.8
|
||||
highlight: ^0.7.0
|
||||
http: ^1.1.0
|
||||
|
|
|
|||
|
|
@ -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: [],
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ dependencies:
|
|||
collection: "^1.18.0"
|
||||
device_info_plus: ^12.3.0
|
||||
diff_match_patch: "^0.4.1"
|
||||
file_picker: ^10.2.0
|
||||
file_picker: ^10.3.10
|
||||
flutter:
|
||||
sdk: flutter
|
||||
flutter_svg: "^2.0.6"
|
||||
|
|
|
|||
Loading…
Reference in a new issue