fix lint errors

This commit is contained in:
krawieck 2021-01-26 23:51:02 +01:00
parent 1812d70546
commit 735bd52be2
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,6 @@ import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:image_picker/image_picker.dart';
import 'package:lemmur/widgets/bottom_safe.dart';
import 'package:lemmy_api_client/pictrs.dart';
import 'package:lemmy_api_client/v2.dart';
@ -11,6 +10,7 @@ import '../hooks/image_picker.dart';
import '../hooks/ref.dart';
import '../hooks/stores.dart';
import '../util/pictrs.dart';
import '../widgets/bottom_safe.dart';
/// Page for managing things like username, email, avatar etc
/// This page will assume the manage account is logged in and

View File

@ -374,7 +374,7 @@ class CommentWidget extends HookWidget {
if (comment.creatorBannedFromCommunity)
const _CommentTag('BANNED FROM COMMUNITY', Colors.red),
const Spacer(),
if (collapsed.value && commentTree.children.length > 0) ...[
if (collapsed.value && commentTree.children.isNotEmpty) ...[
_CommentTag('+${commentTree.children.length}',
Theme.of(context).accentColor),
const SizedBox(width: 7),