Logs in when submitted
This commit is contained in:
1 parent
96c4635254
commit
aae3ca692c
1 file changed
+2
@@ -24,6 +24,8 @@ class LoginPage extends StatelessWidget {
|
|||||||
const Padding(padding: EdgeInsets.symmetric(vertical: 20)),
|
const Padding(padding: EdgeInsets.symmetric(vertical: 20)),
|
||||||
TextField(
|
TextField(
|
||||||
controller: username,
|
controller: username,
|
||||||
|
onSubmitted: (value) => DbHelper.login(username.text),
|
||||||
|
textInputAction: TextInputAction.done,
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
label: Text('Username'),
|
label: Text('Username'),
|
||||||
border: OutlineInputBorder(),
|
border: OutlineInputBorder(),
|
||||||
|
|||||||
Reference in new issue
Block a user