[shared_preferences] [windows,linux] Data can be corrupted due to lack of atomic file writes #89211
Open
Description
SharedPreferences _preferences = await SharedPreferences.getInstance();
This code simply fails with an error if config file is broken. Maybe it's good to clear preferences file if it contains an error. I do not know why the preferences file breaks but since i've published my app, there were some users, who reported this issue.
Platform where i faced this issue: Windows.
Flutter version: 2.2.3 from stable channel.