refactor: Add code quality reports

This commit is contained in:
Krille Fear 2021-10-16 09:59:38 +02:00
commit 2f978c5098
17 changed files with 93 additions and 29 deletions

View file

@ -601,7 +601,7 @@ class ChatController extends State<Chat> {
void scrollDown() => scrollController.jumpTo(0);
void onEmojiSelected(category, emoji) {
void onEmojiSelected(_, emoji) {
setState(() => showEmojiPicker = false);
if (emoji == null) return;
// make sure we don't send the same emoji twice
@ -721,7 +721,7 @@ class ChatController extends State<Chat> {
return index + 1;
}
void onInputBarSubmitted(String text) {
void onInputBarSubmitted(_) {
send();
FocusScope.of(context).requestFocus(inputFocus);
}