文件最后提交记录最后更新时间
[shared_preferences_tool] Update dependencies and fix deprecation (#10560) Update the dependencies and fix deprecations. Issues: https://github.com/flutter/flutter/issues/166602 ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.5 个月前
[shared_preferences_tool] Update dependencies and fix deprecation (#10560) Update the dependencies and fix deprecations. Issues: https://github.com/flutter/flutter/issues/166602 ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.5 个月前
[shared_preferences_tool] Update dependencies and fix deprecation (#10560) Update the dependencies and fix deprecations. Issues: https://github.com/flutter/flutter/issues/166602 ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.5 个月前
Remove "All right reserved" from all files (#10066) Per guidance from legal on current preferred practice, remove "All rights reserved" from all LICENSE files and header blocks, and update the repo tool check accordingly.7 个月前
Re-land [shared_preferences] Add shared preferences devtool (#8531) Re-re-lands https://github.com/flutter/packages/pull/8494 with a change to remove --ignored from the git status check in the repo tooling publish command, which is what caused the release failure in the last landing. pub publish has ignored files in .gitignore for years, so there's no longer any value in checking that they don't exist. I've verified that publish --dry-run passes locally with this change. Server-only check failures could still potentially cause another revert, but those can't be found other than the hard way.1 年前
[shared_preferences_tool] Update dependencies and fix deprecation (#10560) Update the dependencies and fix deprecations. Issues: https://github.com/flutter/flutter/issues/166602 ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.5 个月前
README.md

A DevTools extension for Flutter's shared_preferences package.

Features

This package contains the source code for the package:shared_preferences DevTools extension. With this tool, you can:

  • List all keys stored in your app's SharedPreferences.
  • Search for specific keys.
  • Edit or remove values directly, with changes reflected in your app instantly.

It supports all data types available in SharedPreferences:

  • String
  • int
  • double
  • bool
  • List<String>

Running this project locally

  1. Run the example project in the shared_preferences package and copy its debug service URL.
  2. Run the shared_preferences_tool project by running the following command:
flutter run -d chrome --dart-define=use_simulated_environment=true

For more information, see the devtools_extensions package documentation.

Publishing this DevTools extension

The Flutter web app in this package is built and distributed as part of. package:shared_preferences. If there are changes to this tool that are ready to publish as part of shared_preferences, then the publish workflow for shared_preferences should follow these steps prior to publishing.

  1. Build the DevTools extension and move the assets to shared_preferences.

    cd shared_preferences_tool;
    flutter pub get;
    dart run devtools_extensions build_and_copy --source=. --dest=../shared_preferences/extension/devtools
    
  2. Validate that shared_preferences is properly configured to distribute this extension.

    cd shared_preferences_tool;
    dart run devtools_extensions validate --package=../shared_preferences
    
  3. Publish shared_preferences as normal.