Future<void> setUserName(String x) async { SharedPreferences sp = await SharedPreferences.getInstance(); await sp.setString('name', x); }