Remove L1 (base language) display from course info chips (#4378)
* Initial plan * Remove L1 display from courses Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
This commit is contained in:
parent
3cfe97059d
commit
0b40b1c7ea
2 changed files with 1 additions and 6 deletions
|
|
@ -92,8 +92,7 @@ class CourseInfoChipsState extends State<CourseInfoChips>
|
|||
children: [
|
||||
CourseInfoChip(
|
||||
icon: Icons.language,
|
||||
text:
|
||||
"${course!.baseLanguageDisplay} → ${course!.targetLanguageDisplay}",
|
||||
text: course!.targetLanguageDisplay,
|
||||
fontSize: widget.fontSize,
|
||||
iconSize: widget.iconSize,
|
||||
padding: widget.padding,
|
||||
|
|
|
|||
|
|
@ -52,10 +52,6 @@ class CoursePlanModel {
|
|||
targetLanguageModel?.langCode.toUpperCase() ??
|
||||
targetLanguage.toUpperCase();
|
||||
|
||||
String get baseLanguageDisplay =>
|
||||
baseLanguageModel?.langCode.toUpperCase() ??
|
||||
languageOfInstructions.toUpperCase();
|
||||
|
||||
/// Deserialize from JSON
|
||||
factory CoursePlanModel.fromJson(Map<String, dynamic> json) {
|
||||
return CoursePlanModel(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue