-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#3465Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: shared_preferencesPlugin to read and write Shared PreferencesPlugin to read and write Shared Preferencespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Description
Use case
I have an app (based on Xamarin, but I that's not importing) that I am migrating to flutter.
The App uses share preferences (NSUserDefaults (on iOS) and SharedPreferences (on Android)) to store some user configuration data.
It would be very nice, if these settings are not lost when migrating to flutter.
But they are (at least in my tests), and I think that is because flutter uses the 'flutter.' prefix for any preferences one stores.
Proposal
Add an option to the shared preference plugin to change the ".flutter" prefix to something else (or even make it empty).
This could be simply done by making the _prefix memeber non-const and adding a static function to change it.
itsarjunsinh, Zazo032, mono0926, jonahwilliams, sebaslogen and 38 more
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: shared_preferencesPlugin to read and write Shared PreferencesPlugin to read and write Shared Preferencespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.