From b9b51dbad34c776a95ee98ffe4cc1a32c3f408a9 Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Thu, 11 Jan 2024 11:17:36 +0100 Subject: [PATCH] Rename constant to make it more clear what they are --- lib/helpers/consts.dart | 4 ++-- lib/screens/auth_screen.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/helpers/consts.dart b/lib/helpers/consts.dart index 61778350..7cf7d978 100644 --- a/lib/helpers/consts.dart +++ b/lib/helpers/consts.dart @@ -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'; diff --git a/lib/screens/auth_screen.dart b/lib/screens/auth_screen.dart index 38f6b015..92df4713 100644 --- a/lib/screens/auth_screen.dart +++ b/lib/screens/auth_screen.dart @@ -152,8 +152,8 @@ class _AuthCardState extends State { void _preFillTextfields() { if (kDebugMode && _authMode == AuthMode.Login) { setState(() { - _usernameController.text = USER_NAME; - _passwordController.text = PASSWORD; + _usernameController.text = TESTSERVER_USER_NAME; + _passwordController.text = TESTSERVER_PASSWORD; }); } }