@@ -70,6 +70,8 @@ class ChapterView extends StatelessWidget {
7070 ChapterViewModel model,
7171 BuildContext context,
7272 ) {
73+ bool disabled = chapter.dashedName == 'frontend-libraries' && ! model.isDev;
74+
7375 return Container (
7476 padding: EdgeInsets .all (8 ),
7577 margin: EdgeInsets .symmetric (vertical: 8 , horizontal: 8 ),
@@ -95,7 +97,8 @@ class ChapterView extends StatelessWidget {
9597 ),
9698 ),
9799 ),
98- if (chapter.comingSoon != null && chapter.comingSoon == true )
100+ if (chapter.comingSoon != null && chapter.comingSoon == true ||
101+ disabled)
99102 Container (
100103 margin: const EdgeInsets .all (8 ),
101104 padding: const EdgeInsets .all (3 ),
@@ -108,7 +111,7 @@ class ChapterView extends StatelessWidget {
108111 child: Text ('Coming Soon' ),
109112 ),
110113 for (Module module in chapter.modules as List <Module >)
111- chapterButton (context, module, model)
114+ chapterButton (context, module, model, chapter )
112115 ],
113116 ),
114117 ),
@@ -121,8 +124,10 @@ class ChapterView extends StatelessWidget {
121124 BuildContext context,
122125 Module module,
123126 ChapterViewModel model,
127+ Chapter chapter,
124128 ) {
125- if (module.comingSoon != null && module.comingSoon == true ) {
129+ bool disabled = chapter.dashedName == 'frontend-libraries' && ! model.isDev;
130+ if (module.comingSoon != null && module.comingSoon == true || disabled) {
126131 return Container ();
127132 }
128133
0 commit comments