refactor: Enable more strict lints
This commit is contained in:
parent
f797bce8d0
commit
28af7bb0c7
65 changed files with 170 additions and 146 deletions
|
|
@ -32,7 +32,7 @@ class LoginController extends State<Login> {
|
|||
void toggleShowPassword() =>
|
||||
setState(() => showPassword = !loading && !showPassword);
|
||||
|
||||
void login() async {
|
||||
Future<void> login() async {
|
||||
final matrix = Matrix.of(context);
|
||||
if (usernameController.text.isEmpty) {
|
||||
setState(() => usernameError = L10n.of(context).pleaseEnterYourUsername);
|
||||
|
|
@ -102,7 +102,7 @@ class LoginController extends State<Login> {
|
|||
);
|
||||
}
|
||||
|
||||
void _checkWellKnown(String userId) async {
|
||||
Future<void> _checkWellKnown(String userId) async {
|
||||
if (mounted) setState(() => usernameError = null);
|
||||
if (!userId.isValidMatrixId) return;
|
||||
final oldHomeserver = widget.client.homeserver;
|
||||
|
|
@ -158,7 +158,7 @@ class LoginController extends State<Login> {
|
|||
}
|
||||
}
|
||||
|
||||
void passwordForgotten() async {
|
||||
Future<void> passwordForgotten() async {
|
||||
final input = await showTextInputDialog(
|
||||
useRootNavigator: false,
|
||||
context: context,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue