refactor: Enable more strict lints

This commit is contained in:
Christian Kußowski 2026-02-24 10:04:40 +01:00
commit 28af7bb0c7
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
65 changed files with 170 additions and 146 deletions

View file

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