title: Shared_Preferences for Flutter Web?
body: <p>Shared_preferences (<a href="https://pub.dev/packages/shared_preferences" rel="noreferrer">https://pub.dev/packages/shared_preferences</a>) doesn't seem to work for Flutter for Web.</p>
  
  <p>I have the following function that's called when a button is pressed.</p>
  
  <pre><code> getEmail() async {
      print("reached 1st line");
      SharedPreferences prefs = await SharedPreferences.getInstance();
      print("reached 2nd line");
      String _confirmedEmail = prefs.getString('_confirmedEmail') ?? "";
  )
  </code></pre>
  
  <p>It prints "reached 1st line" but not "reached 2nd line", which means the program doesn't go past the await statement. Interestingly I don't get any error either. It seems to just ignore the rest of the function after the await statement.</p>
  
  <p>What is the best alternative to store shared preferences in Flutter for Web?</p>