refactor: Switch to flutter_lints

This commit is contained in:
Krille Fear 2021-10-14 18:09:30 +02:00
commit 13fda9458f
101 changed files with 719 additions and 653 deletions

View file

@ -16,6 +16,8 @@ import '../config/setting_keys.dart';
import 'views/login_view.dart';
class Login extends StatefulWidget {
const Login({Key key}) : super(key: key);
@override
LoginController createState() => LoginController();
}
@ -89,7 +91,7 @@ class LoginController extends State<Login> {
void checkWellKnownWithCoolDown(String userId) async {
_coolDown?.cancel();
_coolDown = Timer(
Duration(seconds: 1),
const Duration(seconds: 1),
() => _checkWellKnown(userId),
);
}
@ -202,7 +204,7 @@ class LoginController extends State<Login> {
okLabel: L10n.of(context).ok,
cancelLabel: L10n.of(context).cancel,
textFields: [
DialogTextField(
const DialogTextField(
hintText: '******',
obscureText: true,
minLines: 1,