Skip to content

Commit

Permalink
Merge pull request #1203 from tom-anders/studyBottomBar
Browse files Browse the repository at this point in the history
fix(study): make bottom bar back/next consistent with rest of the app
  • Loading branch information
veloce authored Dec 1, 2024
2 parents f94f3ad + d7d2db1 commit 82a3b8b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/src/view/study/study_bottom_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ class _AnalysisBottomBar extends ConsumerWidget {

return BottomBar(
children: [
_NextChapterButton(
id: id,
chapterId: state.study.chapter.id,
hasNextChapter: state.hasNextChapter,
blink: !state.isIntroductoryChapter &&
state.isAtEndOfChapter &&
state.hasNextChapter,
),
RepeatButton(
onLongPress: onGoBack,
child: BottomBarButton(
Expand All @@ -64,14 +72,6 @@ class _AnalysisBottomBar extends ConsumerWidget {
showTooltip: false,
),
),
_NextChapterButton(
id: id,
chapterId: state.study.chapter.id,
hasNextChapter: state.hasNextChapter,
blink: !state.isIntroductoryChapter &&
state.isAtEndOfChapter &&
state.hasNextChapter,
),
RepeatButton(
onLongPress: onGoForward,
child: BottomBarButton(
Expand Down

0 comments on commit 82a3b8b

Please sign in to comment.