Cannot find a clue why i can't set an initial text at TextEditingController as the parameter: following code works well:
TextEditingController _usernameController =
TextEditingController(text: 'test');
But if i change hardcoded value to a parameter it brokes:
String _test = 'test';
TextEditingController _usernameController =
TextEditingController(text: _test);
How to solve this problem? Thanks a lot