保存字符串
Future<void> putString(String key, String value) async { // obtain shared preferences final prefs = await SharedPreferences.getInstance(); await prefs.setString(key, value); }