Skip to content

Commit

Permalink
fix: hide fill in the blanks title and enable btn in dialogue views (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirajn2311 authored Feb 18, 2025
1 parent 2fd94b8 commit 764e122
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,18 @@ class EnglishView extends StatelessWidget {
),
Column(
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
'Fill in the Blanks',
style: TextStyle(
fontSize: FontSize.large.value,
fontWeight: FontWeight.bold,
fontFamily: 'Inter',
if (challenge.fillInTheBlank != null) ...[
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
'Fill in the Blanks',
style: TextStyle(
fontSize: FontSize.large.value,
fontWeight: FontWeight.bold,
fontFamily: 'Inter',
),
),
),
),
if (challenge.fillInTheBlank != null)
Container(
color: const Color(0xFF0a0a23),
margin: const EdgeInsets.all(8),
Expand All @@ -163,6 +163,7 @@ class EnglishView extends StatelessWidget {
],
),
),
],
Row(
children: [
Expanded(
Expand Down Expand Up @@ -190,7 +191,7 @@ class EnglishView extends StatelessWidget {
block)
: () => {model.checkAnswers(challenge)},
child: Text(
model.allInputsCorrect
model.allInputsCorrect || challenge.fillInTheBlank == null
? 'Go to Next Challenge'
: 'Check Answers',
style: const TextStyle(fontSize: 20),
Expand Down

0 comments on commit 764e122

Please sign in to comment.