Skip to content

Commit

Permalink
Add option to copy the text from the homework details page
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt committed Apr 26, 2024
1 parent 8f670c3 commit 2654d01
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions app/lib/homework/homework_details/homework_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,19 @@ class HomeworkDetails extends StatelessWidget {
/// This is neccessary as the homeworkItem can be null at the beginning.
if (view == null) return const CircularProgressIndicator();

return Scaffold(
body: CustomScrollView(
slivers: <Widget>[
HomeworkTitleAppBar(view: view),
SliverToBoxAdapter(
child: _HomeworkDetailsBody(view: view),
),
],
return SelectionArea(
child: Scaffold(
body: CustomScrollView(
slivers: <Widget>[
HomeworkTitleAppBar(view: view),
SliverToBoxAdapter(
child: _HomeworkDetailsBody(view: view),
),
],
),
bottomNavigationBar:
_BottomHomeworkIsDoneActionButton(view: view),
),
bottomNavigationBar: _BottomHomeworkIsDoneActionButton(view: view),
);
},
),
Expand Down

0 comments on commit 2654d01

Please sign in to comment.