Future<bool> hasServerUri() async { final preferences = await SharedPreferences.getInstance(); return preferences.containsKey('baseUri'); }