Skip to content

Commit

Permalink
fix: dont show completed icon on certificatoin projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Sembauke committed Jun 11, 2024
1 parent 2224be4 commit 231b928
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions mobile-app/lib/ui/views/learn/block/block_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,18 @@ class BlockHeader extends StatelessWidget {
model.isOpen,
);
},
leading: model.challengesCompleted == block.challenges.length
? const Icon(
Icons.check_circle,
size: 20,
)
: const Icon(
Icons.circle_outlined,
size: 20,
),
minVerticalPadding: 18,
leading: !isCertification
? model.challengesCompleted == block.challenges.length
? const Icon(
Icons.check_circle,
size: 20,
)
: const Icon(
Icons.circle_outlined,
size: 20,
)
: null,
trailing: !isCertification
? OpenCloseIcon(
block: block,
Expand Down

0 comments on commit 231b928

Please sign in to comment.