File tree Expand file tree Collapse file tree
project_view/configs/views Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,8 +160,9 @@ class NewProjectDialogState extends ConsumerState<NewProjectDialog> {
160160 padding: const EdgeInsets .only (top: 24 , left: 8 ),
161161 child: ElevatedButton .icon (
162162 onPressed: () async {
163- final String ? picked = await FilePicker .platform
164- .getDirectoryPath (dialogTitle: "Pick project location" );
163+ final String ? picked = await FilePicker .getDirectoryPath (
164+ dialogTitle: "Pick project location" ,
165+ );
165166 if (picked == null ) return ;
166167
167168 setState (() {
Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ class _JavaPickerState extends ConsumerState<JavaPicker> {
371371 }
372372
373373 Future <void > onCustom () async {
374- final FilePickerResult ? browsed = await FilePicker .platform. pickFiles (
374+ final FilePickerResult ? browsed = await FilePicker .pickFiles (
375375 dialogTitle: "Select Java executable" ,
376376 // Specifically mention this, because we can't use FileType.custom, which would be expected here.
377377 // This is because it doesn't support files with no extension, which is the case for executables on linux.
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ class PathPickerButton extends StatelessWidget {
114114 // - Linux will crash on this, if the path contains any special characters
115115 // (I have submitted a PR to the file_picker library that will fix this: https://github.com/miguelpruivo/flutter_file_picker/pull/1963 )
116116 // - Windows will crash on this, if the directory does not exist
117- picked = await FilePicker .platform. getDirectoryPath (
117+ picked = await FilePicker .getDirectoryPath (
118118 dialogTitle: dialogTitle,
119119 initialDirectory: initialDirectory,
120120 );
@@ -124,7 +124,7 @@ class PathPickerButton extends StatelessWidget {
124124 // ignore: avoid_catches_without_on_clauses
125125 } catch (_) {
126126 // So if it crashed, we try again, but without an initialDirectory:
127- picked = await FilePicker .platform. getDirectoryPath (
127+ picked = await FilePicker .getDirectoryPath (
128128 dialogTitle: dialogTitle,
129129 );
130130 }
Original file line number Diff line number Diff line change @@ -309,10 +309,10 @@ packages:
309309 dependency: "direct main"
310310 description:
311311 name: file_picker
312- sha256: "57d9a1dd5063f85fa3107fb42d1faffda52fdc948cefd5fe5ea85267a5fc7343"
312+ sha256: f13a03000d942e476bc1ff0a736d2e9de711d2f89a95cd4c1d88f861c3348387
313313 url: "https://pub.dev"
314314 source: hosted
315- version: "10.3.10 "
315+ version: "11.0.2 "
316316 fixnum:
317317 dependency: transitive
318318 description:
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ dependencies:
3232 archive : ^4.0.9
3333 async : ^2.13.1
3434 crypto : ^3.0.7
35- file_picker : ^10.3.10
35+ file_picker : ^11.0.2
3636 flutter :
3737 sdk : flutter
3838 flutter_colorpicker : ^1.1.0
You can’t perform that action at this time.
0 commit comments