Skip to content

Commit 710e83c

Browse files
CopilotSembauke
andauthored
Show challenge title instead of "Instructions" in challenge drawer header (#1648)
* Initial plan * Replace "Instructions" with challenge title in drawer and add test Co-authored-by: Sembauke <[email protected]> * delete: remove DescriptionView widget tests * fix: update title display in DescriptionView for better clarity --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: Sembauke <[email protected]> Co-authored-by: sembauke <[email protected]>
1 parent 1c3729d commit 710e83c

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

mobile-app/lib/ui/views/learn/widgets/description/description_widget_view.dart

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,30 +39,32 @@ class DescriptionView extends StatelessWidget {
3939
? [
4040
Row(
4141
children: [
42-
Padding(
43-
padding: const EdgeInsets.only(left: 12),
44-
child: Column(
45-
crossAxisAlignment: CrossAxisAlignment.start,
46-
children: [
47-
Text(
48-
context.t.instructions,
49-
style: const TextStyle(
50-
fontSize: 24,
51-
fontWeight: FontWeight.bold,
52-
),
53-
),
54-
if (isMultiStepChallenge)
42+
Expanded(
43+
child: Padding(
44+
padding: const EdgeInsets.only(left: 12, right: 6),
45+
child: Column(
46+
crossAxisAlignment: CrossAxisAlignment.start,
47+
children: [
5548
Text(
56-
context.t.step_count(
57-
splitTitle[1],
58-
maxChallenges.toString(),
59-
),
49+
title,
6050
style: const TextStyle(
61-
fontSize: 14,
62-
color: Colors.white70,
51+
fontSize: 24,
52+
fontWeight: FontWeight.bold,
6353
),
64-
)
65-
],
54+
),
55+
if (isMultiStepChallenge)
56+
Text(
57+
context.t.step_count(
58+
splitTitle[1],
59+
maxChallenges.toString(),
60+
),
61+
style: const TextStyle(
62+
fontSize: 14,
63+
color: Colors.white70,
64+
),
65+
)
66+
],
67+
),
6668
),
6769
),
6870
],

0 commit comments

Comments
 (0)