Skip to content

Commit b9b51db

Browse files
committed
Rename constant to make it more clear what they are
1 parent a87c0e7 commit b9b51db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/helpers/consts.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const DEFAULT_SERVER_PROD = 'https://wger.de';
2828
const DEFAULT_SERVER_TEST = 'https://wger-master.rge.uber.space/';
2929

3030
// Debug mode Login Data
31-
const USER_NAME = 'user';
32-
const PASSWORD = 'flutteruser';
31+
const TESTSERVER_USER_NAME = 'user';
32+
const TESTSERVER_PASSWORD = 'flutteruser';
3333

3434
/// Keys used in the android manifest
3535
const MANIFEST_KEY_API = 'wger.api_key';

lib/screens/auth_screen.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ class _AuthCardState extends State<AuthCard> {
152152
void _preFillTextfields() {
153153
if (kDebugMode && _authMode == AuthMode.Login) {
154154
setState(() {
155-
_usernameController.text = USER_NAME;
156-
_passwordController.text = PASSWORD;
155+
_usernameController.text = TESTSERVER_USER_NAME;
156+
_passwordController.text = TESTSERVER_PASSWORD;
157157
});
158158
}
159159
}

0 commit comments

Comments
 (0)