Added settings tab

This commit is contained in:
Alessandro Autiero
2022-10-07 19:18:19 +02:00
parent 55467152c9
commit 07481c303e
17 changed files with 258 additions and 110 deletions

View File

@@ -43,9 +43,7 @@ class GameController extends GetxController {
});
username = TextEditingController(text: _storage.read("${type.value == GameType.client ? 'game' : 'host'}_username") ?? "");
username.addListener(() async {
await _storage.write("${type.value == GameType.client ? 'game' : 'host'}_username", username.text);
});
username.addListener(() => _storage.write("${type.value == GameType.client ? 'game' : 'host'}_username", username.text));
started = RxBool(false);
}