Rename constant to make it more clear what they are

This commit is contained in:
Roland Geider
2024-01-11 11:17:36 +01:00
parent a87c0e7063
commit b9b51dbad3
2 changed files with 4 additions and 4 deletions

View File

@@ -28,8 +28,8 @@ const DEFAULT_SERVER_PROD = 'https://wger.de';
const DEFAULT_SERVER_TEST = 'https://wger-master.rge.uber.space/';
// Debug mode Login Data
const USER_NAME = 'user';
const PASSWORD = 'flutteruser';
const TESTSERVER_USER_NAME = 'user';
const TESTSERVER_PASSWORD = 'flutteruser';
/// Keys used in the android manifest
const MANIFEST_KEY_API = 'wger.api_key';

View File

@@ -152,8 +152,8 @@ class _AuthCardState extends State<AuthCard> {
void _preFillTextfields() {
if (kDebugMode && _authMode == AuthMode.Login) {
setState(() {
_usernameController.text = USER_NAME;
_passwordController.text = PASSWORD;
_usernameController.text = TESTSERVER_USER_NAME;
_passwordController.text = TESTSERVER_PASSWORD;
});
}
}