Turn off autocorrect/capitalization for login
This commit is contained in:
parent
128a1bf35f
commit
11de9ccfe8
|
@ -86,16 +86,20 @@ class _LoginPageState extends State<LoginPage> {
|
||||||
children: [
|
children: [
|
||||||
TextFormField(
|
TextFormField(
|
||||||
controller: serverController,
|
controller: serverController,
|
||||||
|
autocorrect: false,
|
||||||
|
textCapitalization: TextCapitalization.none,
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: 'Server', hintText: 'https://matrix.org'),
|
labelText: 'Server', hintText: 'https://matrix.org'),
|
||||||
),
|
),
|
||||||
TextFormField(
|
TextFormField(
|
||||||
controller: usernameController,
|
controller: usernameController,
|
||||||
|
autocorrect: false,
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
labelText: 'Username', hintText: 'john'),
|
labelText: 'Username', hintText: 'john'),
|
||||||
),
|
),
|
||||||
TextFormField(
|
TextFormField(
|
||||||
controller: passwordController,
|
controller: passwordController,
|
||||||
|
autocorrect: false,
|
||||||
decoration: const InputDecoration(labelText: 'Password'),
|
decoration: const InputDecoration(labelText: 'Password'),
|
||||||
obscureText: true,
|
obscureText: true,
|
||||||
onFieldSubmitted: (value) => login(),
|
onFieldSubmitted: (value) => login(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user