mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Rename constant to make it more clear what they are
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user