Turn off autocorrect/capitalization for login

This commit is contained in:
Brandon Presley 2023-12-30 16:17:05 +13:00
parent 128a1bf35f
commit 11de9ccfe8

View File

@ -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(),