-
-
Notifications
You must be signed in to change notification settings - Fork 169
feat: add nodules support for interactive challenges #1674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -12,6 +12,7 @@ import 'package:freecodecamp/ui/views/learn/widgets/quiz_widget.dart'; | |||||||||||||||||||||||||
| import 'package:freecodecamp/ui/views/learn/widgets/transcript_widget.dart'; | ||||||||||||||||||||||||||
| import 'package:freecodecamp/ui/views/learn/widgets/youtube_player_widget.dart'; | ||||||||||||||||||||||||||
| import 'package:freecodecamp/ui/views/news/html_handler/html_handler.dart'; | ||||||||||||||||||||||||||
| import 'package:phone_ide/phone_ide.dart'; | ||||||||||||||||||||||||||
| import 'package:stacked/stacked.dart'; | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| class MultipleChoiceView extends StatelessWidget { | ||||||||||||||||||||||||||
|
|
@@ -59,6 +60,35 @@ class MultipleChoiceView extends StatelessWidget { | |||||||||||||||||||||||||
| ), | ||||||||||||||||||||||||||
| ), | ||||||||||||||||||||||||||
| ), | ||||||||||||||||||||||||||
| if (challenge.nodules!.isNotEmpty) | ||||||||||||||||||||||||||
| ChallengeCard( | ||||||||||||||||||||||||||
| title: 'Lesson', | ||||||||||||||||||||||||||
| child: Column( | ||||||||||||||||||||||||||
| children: [ | ||||||||||||||||||||||||||
| ...challenge.nodules!.map( | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| if (challenge.nodules!.isNotEmpty) | |
| ChallengeCard( | |
| title: 'Lesson', | |
| child: Column( | |
| children: [ | |
| ...challenge.nodules!.map( | |
| if ((challenge.nodules?.isNotEmpty ?? false)) | |
| ChallengeCard( | |
| title: 'Lesson', | |
| child: Column( | |
| children: [ | |
| ...(challenge.nodules ?? const <Nodule>[]).map( |
Sembauke marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Sembauke marked this conversation as resolved.
Show resolved
Hide resolved
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -243,9 +243,9 @@ class LearnLandingViewModel extends BaseViewModel { | |
|
|
||
| List superBlocks = res.data['superblocks']; | ||
| for (int i = 0; i < superBlocks.length; i++) { | ||
| if (superBlocks[i]['dashedName'].toString().contains('full-stack')) { | ||
| continue; | ||
| } | ||
| // if (superBlocks[i]['dashedName'].toString().contains('full-stack')) { | ||
| // continue; | ||
| // } | ||
Sembauke marked this conversation as resolved.
Show resolved
Hide resolved
Comment on lines
+246
to
+248
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we have a way to enable FSD for dev only, without making it available in prod? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep this is the way There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is mostly a relic from what we used to do with the new landing page for the full stack cert |
||
| layout.add( | ||
| SuperBlockButton( | ||
| button: SuperBlockButtonData( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.