Skip to content

[shared_preferences] Replace Shared Preferences with Jetpack Datastore #65145

Closed
flutter/packages
#5210

Description

@BraveEvidence

Motivation

Shared Preferences on Android is slow and is bound to be buggy as it fail without warning. Jetpack Datastore solves this issue

Description

https://android-developers.googleblog.com/2020/09/prefer-storing-data-with-jetpack.html?linkId=98693079

Activity

  1. changed the title [-]Replace Shared Preferences with Jetpack Datastore[/-] [+]Proposal to add new plugin: Jetpack Datastore[/+] on Sep 3, 2020
  2. stuartmorgan-g commented on May 15, 2021

    @stuartmorgan-g
    Contributor

    We would not maintain a second, Android-only plugin that does the same thing as shared_preferences but with a different backend. Updating shared_preferences's Android implementation to DataStore seems reasonable though.

    @darshankawar It's not clear to me why you retitled this issue in a way that completely changed the request.

  3. changed the title [-]Proposal to add new plugin: Jetpack Datastore[/-] [+][shared_preferences] Replace Shared Preferences with Jetpack Datastore[/+] on May 15, 2021
  4. added
    p: shared_preferencesPlugin to read and write Shared Preferences
    P3Issues that are less important to the Flutter project
    and removed
    would be a good packageSeparate Flutter package should be made for this
    on May 15, 2021
  5. darshankawar commented on May 17, 2021

    @darshankawar
    Member

    @stuartmorgan
    My interpretation was a proposal to add new plugin instead of shared_preferences and hence also added would be a good package. Sorry for any confusion caused due to it.

  6. 3 remaining items

  7. added
    P2Important issues not at the top of the work list
    and removed
    P3Issues that are less important to the Flutter project
    on Feb 13, 2024
  8. flutter-triage-bot commented on Jun 18, 2024

    @flutter-triage-bot

    This issue is assigned to @tarrinneal but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!

  9. added
    ⏳Bot is counting down the days until it unassigns the issue
    on Jun 18, 2024
  10. added
    r: fixedIssue is closed as already fixed in a newer version
    on Jul 31, 2024
  11. github-actions commented on Aug 14, 2024

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  12. locked as resolved and limited conversation to collaborators on Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

⏳Bot is counting down the days until it unassigns the issueP2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: shared_preferencesPlugin to read and write Shared Preferencespackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions