From 11de9ccfe83f6cfe2fa29de22fd2f66bec061edd Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Sat, 30 Dec 2023 16:17:05 +1300 Subject: [PATCH] Turn off autocorrect/capitalization for login --- lib/login.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/login.dart b/lib/login.dart index 57797de..17015b3 100644 --- a/lib/login.dart +++ b/lib/login.dart @@ -86,16 +86,20 @@ class _LoginPageState extends State { 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(),