8000 Add shared_preferences plugin · CoderJava/Flutter-News-App@f3c9a61 · GitHub
[go: up one dir, main page]

Skip to content

Commit f3c9a61

Browse files
committed
Add shared_preferences plugin
1 parent a439d17 commit f3c9a61

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ packages:
659659
source: hosted
660660
version: "1.2.0"
661661
shared_preferences:
662-
dependency: transitive
662+
dependency: "direct main"
663663
description:
664664
name: shared_preferences
665665
url: "https://pub.dartlang.org"

pubspec.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ dependencies:
6565
# Scalable Vector Graphics 1.1 files.
6666
flutter_svg: ^1.1.0
6767

68+
# Flutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS
69+
# and SharedPreferences on Android.
70+
shared_preferences: ^2.0.15
71+
6872
dev_dependencies:
6973
flutter_test:
7074
sdk: flutter

0 commit comments

Comments
 (0)
0