Closed BerkSpar closed 1 year ago
Thats true! I did some tests with the File class from dart:io library and this error is caused by breaking change
Breaking change https://github.com/dart-lang/sdk/issues/49647: File.create now takes new optional exclusive bool parameter, and when it is true the operation will fail if target file already exists.
that was introduced in version 2.19 of Dart.
This change comes from this issue:
I'm working on a local version of slidy that fixes this problem. If the mainteners want, I can open a PR later with the correction for us to work on and release a new version with the fix;
Basically the solution start with the create and createAsync methods of File class that must be override like this:
Future<File> create({bool exclusive = true, bool recursive = false}) {
return _file.create(recursive: recursive);
}
@override
void createSync({bool exclusive = true, bool recursive = false}) {
_file.createSync(recursive: recursive);
}
Mesmo aqui com a atualização do dart Dart SDK version: 2.19.0 (stable) (Mon Jan 23 11:29:09 2023 -0800) on "windows_x64"
+1
Same
$ dart --version
Dart SDK version: 2.19.0-146.2.beta (beta) (Tue Sep 20 10:30:48 2022 +0000) on "linux_x64"
$ flutter --version
Flutter 3.4.0-17.2.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision d6260f127f (4 months ago) • 2022-09-21 13:33:49 -0500
Engine • revision 3950c6140a
Tools • Dart 2.19.0 (build 2.19.0-146.2.beta) • DevTools 2.16.0
Same as #280 I think...
@m4rc0s can you create a PR with the changes?
@m4rc0s can you create a PR with the changes?
Shure! Ill do that!
@BerkSpar PR open: https://github.com/Flutterando/slidy/pull/282
Please let me know if theres something that I need to do to put my PR/Merge according to some contribution guide;
Thanks, @m4rc0s! I didn't found any contribution guide in this repository. I guess it all ok.
@Bwolfs2 can you see this PR #282 and merge if avaiable?
I`m busy here.... @jacobaraujo7 can accept and publish?
podem instalar usando o comando:
dart pub global activate --source git https://github.com/Flutterando/slidy
Slidy is current working in version 4.x. Thanks for all!
Description
I tried to install slidy using
flutter pub global activate slidy
and got an error. My flutter doctor:Log