Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Problem with path_provider fixed#484

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
KalybosPro wants to merge11 commits intoBaseflow:main
base:main
Choose a base branch
Loading
fromKalybosPro:develop

Conversation

@KalybosPro
Copy link

@KalybosProKalybosPro commentedMar 13, 2025
edited
Loading

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Bug fix

⤵️ What is the current behavior?

The current behavior includes an issue caused by the path_provider package, which affects the functionality of the project.

🆕 What is the new behavior (if this is a feature change)?

The path_provider package has been removed and replaced with a custom getDirectory() function. This fixes the issue and improves the functionality.

💥 Does this PR introduce a breaking change?

No, this PR does not introduce a breaking change.

🐛 Recommendations for testing

Test the new getDirectory() function to ensure it works correctly and replaces the previous functionality of the path_provider package.

Verify that all existing features work as expected without any issues.

Run the application on different platforms to confirm compatibility.

📝 Links to relevant issues/docs

🤔 Checklist before submitting

  • All projects build
  • Follows style guide lines (code style guide)
  • Relevant documentation was updated
  • Rebased onto current develop

@renefloor
Copy link
Contributor

Actually, the sqflite author discourages to use thegetDatabasesPath and recommends to use path_provider. What's the issue with path_provider that you mention? Do you maybe have a link to a github issue?

https://github.com/tekartik/sqflite/blob/master/sqflite_common_ffi/README.md?plain=1#L163C20-L163C33

@KalybosPro
Copy link
Author

Actually, the sqflite author discourages to use thegetDatabasesPath and recommends to use path_provider. What's the issue with path_provider that you mention? Do you maybe have a link to a github issue?

https://github.com/tekartik/sqflite/blob/master/sqflite_common_ffi/README.md?plain=1#L163C20-L163C33

You're right, but the path_provider package is currently facing some issues and isn't working correctly with Flutter 3.29. Therefore, we can use the getDatabasesPath function for now.

@KalybosPro
Copy link
Author

Actually, the sqflite author discourages to use thegetDatabasesPath and recommends to use path_provider. What's the issue with path_provider that you mention? Do you maybe have a link to a github issue?

https://github.com/tekartik/sqflite/blob/master/sqflite_common_ffi/README.md?plain=1#L163C20-L163C33

We can't not wait for path_provider author to update his package. This package is used by many packages (cached_network_image for example)

@renefloor
Copy link
Contributor

But I still don't get what the issue is. If I look at the open issues there is no recent issue about android:https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+path_provider%22

The cached_network_image example has some outdated android project files, but if I delete them and recreate them it runs fine on Android with Flutter 3.29.0.

Can you point me to a specific issue that you have with path_provider? I wonder if you should just update your gradle files. It's also good to use java 17 instead of 21 on Android Studio.

@KalybosPro
Copy link
Author

But I still don't get what the issue is. If I look at the open issues there is no recent issue about android:https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+path_provider%22

The cached_network_image example has some outdated android project files, but if I delete them and recreate them it runs fine on Android with Flutter 3.29.0.

Can you point me to a specific issue that you have with path_provider? I wonder if you should just update your gradle files. It's also good to use java 17 instead of 21 on Android Studio.

I can't point you to the specific issue because the issue is not on github. I was notified by my app users that the images are not showing up. After days of looking for the cause of that issue, I found out that, the issue related to path_provider. In debug mode, everything works fine but not in release mode. The app cannot get the directories (documents, downloads, etc...)
After removing everything related to path_provider and rewrite the code, my app works fine.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

8 participants

@KalybosPro@renefloor@martijn00@minhdanh@Mountains-0@SmartVive@kevmoo@mvanbeusekom

[8]ページ先頭

©2009-2025 Movatter.jp