Skip to content

Commit aa51c31

Browse files
committed
Added name of an exercise to the header of the RightSheet
1 parent 367c7e1 commit aa51c31

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/layouts/DesktopLayout.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class ExercisePage extends StatelessWidget{
7777
note: appLocalizations.noteDifficultyLevel + items[index].difficultyLevel.toString(),
7878
onTap: (){
7979
// Open an overlay showing further informations
80-
OpenMyRightSheet.openMyRightSheet(context, items[index].description, items[index].task, items[index].hint, items[index].solution, 500);
80+
OpenMyRightSheet.openMyRightSheet(context, items[index].name, items[index].description, items[index].task, items[index].hint, items[index].solution, 500);
8181
}
8282
);
8383
}

lib/layouts/MobileLayout.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class ExercisePage extends StatelessWidget{
7474
note: appLocalizations.noteDifficultyLevel + items[index].difficultyLevel.toString(),
7575
onTap: (){
7676
// Open an overlay showing further informations
77-
OpenMyRightSheet.openMyRightSheet(context, items[index].description, items[index].task, items[index].hint, items[index].solution, 300);
77+
OpenMyRightSheet.openMyRightSheet(context, items[index].name, items[index].description, items[index].task, items[index].hint, items[index].solution, 300);
7878
}
7979
);
8080
},

lib/layouts/TabletLayout.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class ExercisePage extends StatelessWidget{
7777
note: appLocalizations.noteDifficultyLevel + items[index].difficultyLevel.toString(),
7878
onTap: (){
7979
// Open an overlay showing further informations
80-
OpenMyRightSheet.openMyRightSheet(context, items[index].description, items[index].task, items[index].hint, items[index].solution, 400);
80+
OpenMyRightSheet.openMyRightSheet(context, items[index].name, items[index].description, items[index].task, items[index].hint, items[index].solution, 400);
8181
}
8282
);
8383
}

lib/ui_elements/my_infomation_right_sheet.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
66

77
class OpenMyRightSheet {
88
// Open the RightSheet and fill it with the correct content
9-
static void openMyRightSheet(BuildContext context, String description, String task, String hint, String solution, double width){
9+
static void openMyRightSheet(BuildContext context, String exerciseName, String description, String task, String hint, String solution, double width){
1010
final appLocalizations = AppLocalizations.of(context)!;
1111

1212
MyRightSheet().showRightSheet(
@@ -34,7 +34,7 @@ class OpenMyRightSheet {
3434
Expanded(
3535
child: Padding(
3636
padding: const EdgeInsets.all(16),
37-
child: Text(appLocalizations.rightSheetDetails), // Details
37+
child: Text(appLocalizations.rightSheetDetails + exerciseName), // Details
3838
),
3939
),
4040
],

0 commit comments

Comments
 (0)