保存浮点型
Future<void> putDouble(String key, String value) async { // obtain shared preferences final prefs = await SharedPreferences.getInstance(); await prefs.setString(key, value); }