Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter_quill_extensions: replace gallery_saver with gal #1403

Merged

Conversation

santiagos01
Copy link
Contributor

Resolves #1377

@singerdmx singerdmx merged commit 225a54a into singerdmx:master Sep 19, 2023
1 check passed
@singerdmx
Copy link
Owner

@Jon-Salmon could you please publish a new version of package?

Copy link
Collaborator

@Jon-Salmon Jon-Salmon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@santiagos01 There are some review items that need to be addressed before this can be released

// Save image to a temporary path
final fileName = uri.pathSegments.isEmpty ? 'image.jpg'
: uri.pathSegments.last;
final imagePath = '${Directory.systemTemp.path}/menu-opt-$fileName';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use a cache directory from path_provider. This method here may not work on android:
flutter/flutter#12116
NativeScript/android#828

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, sorry, didn't notice that this doesn't work on android.
Has this been resolved?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think #1414 already fixed these.

await imageFile.writeAsBytes(response.bodyBytes);

// Save image to gallery
await Gal.putImage(imagePath);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably delete the temporary image after saving

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right.., has this been resolved?

image_picker: ">=0.8.5 <2.0.0"
photo_view: ^0.14.0
video_player: ^2.7.0
youtube_player_flutter: ^8.1.1
gallery_saver: ^2.3.2
gal: ^2.1.1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The gal package requires some setup steps that the user has to take on install. These should be linked to from the readme

@LuchoTurtle
Copy link
Contributor

LuchoTurtle commented Sep 27, 2023

@Jon-Salmon , given the feedback you've provided, are you working on a PR to tackle these issues? If not, I could try and give it a whirl and open it myself. It would really be awesome if we could get a new package version going with these changes. The http dependency versioning error seems to be a put-off for a lot of people, so this would work wonderfully! :D

@Jon-Salmon
Copy link
Collaborator

@LuchoTurtle Please feel free to as I don't have time to work on this currently. I was hoping @santiagos01 would update this but I've not heard anything yet

@santiagos01
Copy link
Contributor Author

Hi all, sorry just saw this again --

Can I check whether the issues mentioned above have been resolved?

@LuchoTurtle
Copy link
Contributor

I believe the issues have already been fixed through #1414, @santiagos01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[flutter_quill_extensions] outdated dependency gallery_saver
4 participants