chore(ui): fix lint.

Signed-off-by: Sahil Kumar <xdsahil@gmail.com>
This commit is contained in:
Sahil Kumar
2023-08-17 13:54:38 +05:30
parent b34f725ff1
commit d684e74b8c
@@ -162,8 +162,7 @@ class BottomRow extends StatelessWidget {
msg = context.translations.threadReplyCountText(replyCount); msg = context.translations.threadReplyCountText(replyCount);
} }
// ignore: prefer_function_declarations_over_variables Future<void> _onThreadTap() async {
final _onThreadTap = () async {
try { try {
var message = this.message; var message = this.message;
if (showInChannel) { if (showInChannel) {
@@ -172,12 +171,9 @@ class BottomRow extends StatelessWidget {
} }
return onThreadTap!(message); return onThreadTap!(message);
} catch (e, stk) { } catch (e, stk) {
print(e); debugPrint('Error while fetching message: $e, $stk');
print(stk);
// ignore: avoid_returning_null_for_void
return null;
} }
}; }
const usernameKey = Key('username'); const usernameKey = Key('username');