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: [
TextFormField(
controller: serverController,
autocorrect: false,
textCapitalization: TextCapitalization.none,
decoration: const InputDecoration(
labelText: 'Server', hintText: 'https://matrix.org'),
),
TextFormField(
controller: usernameController,
autocorrect: false,
decoration: const InputDecoration(
labelText: 'Username', hintText: 'john'),
),
TextFormField(
controller: passwordController,
autocorrect: false,
decoration: const InputDecoration(labelText: 'Password'),
obscureText: true,
onFieldSubmitted: (value) => login(),