패키지, 저장소 및 앱 카테고리 검색

패키지 상세v2.5.6

shared_preferences

간단한 키-값 쌍을 읽고 쓰기 위한 Flutter 플러그인입니다. iOS에서는 NSUserDefaults를, Android에서는 SharedPreferences를 래핑합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
909만
좋아요
1.1만
Pub 점수
160

패키지 설치

flutter pub add shared_preferences

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

플랫폼 간에 간단한 키-값 쌍을 지속적으로 저장할 수 있는 플러터 플러그인입니다. iOS의 NSUserDefaults와 안드로이드의 SharedPreferences 같은 네이티브 API를 추상화하여 사용자 선호사항, 설정 또는 세션 토큰과 같은 기본 데이터를 저장하기 위한 통합 인터페이스를 제공합니다. 이 패키지는 웹, macOS, Windows, Linux 등 모든 주요 플랫폼을 지원하며, 가벼운 크로스플랫폼 데이터 영구 저장에 이상적입니다. 데이터는 로컬에 저장되고 비동기적으로 접근되므로 일반적인 앱 시나리오에서 성능과 신뢰성을 보장합니다.

사용 사례

  • 사용자 선호 사항 저장
  • 앱 설정 저장
  • 로그인 상태 유지
  • 작은 양의 데이터 캐싱
  • 사용자 세션 추적

주요 기능

  • 크로스 플랫폼 호환성
  • 간단한 키-값 API
  • 비동기 작업
  • 지속적인 로컬 저장소
  • 다수의 플랫폼을 지원합니다

적합한 대상

  • 경량 데이터 저장
  • 사용자 선호도 관리
  • 앱 구성
  • 시작 사이의 상태 유지
  • 간단한 캐싱 요구 사항

고려 사항

  • 대규모 데이터 세트에 적합하지 않습니다
  • 쿼리 기능 없음
  • 기본적으로 데이터는 암호화되지 않습니다
  • 기본 형식에만 제한됨
  • 복잡한 데이터 구조용으로 설계되지 않음

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Flutter Packages

Release Status Flutter CI Status

This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages directory to see all packages.

These packages are also available on pub.

Issues

Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled "package".

Contributing

If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.

If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.

Packages

These are the packages hosted in this repository:

Package Pub Points Usage Issues Pull requests
animations pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
camera pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cross_file pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cupertino_icons pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cupertino_ui pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
espresso pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
extension_google_sign_in_as_googleapis_auth pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
file_selector pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_lints pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_plugin_android_lifecycle pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_svg pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_svg_test pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
go_router pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
go_router_builder pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_adsense pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_fonts pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_maps_flutter pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_sign_in pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
image_picker pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
interactive_media_ads pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
in_app_purchase pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
local_auth pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
material_ui pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
metrics_center pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
path_parsing pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
path_provider pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
pigeon pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
pointer_interceptor pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
plugin_platform_interface pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
quick_actions pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_identity_services_web pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
rfw pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
shared_preferences pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
two_dimensional_scrollables pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
url_launcher pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics_codec pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics_compiler pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
video_player pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
web_benchmarks pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
webview_flutter pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
xdg_directories pub package pub points downloads GitHub issues by-label GitHub pull requests by-label

카테고리

의존성

의존성 목록 6 개

  • shared_preferences_android^2.3.4
  • shared_preferences_foundation^2.5.0
  • shared_preferences_linux^2.4.0
  • shared_preferences_platform_interface^2.4.0
  • shared_preferences_web^2.4.0
  • shared_preferences_windows^2.4.0

소스 저장소

이 패키지를 사용하는 프로젝트

순위