Skip to content

Commit

Permalink
fix: Resolve overlapping and focus issues for Back and Switch buttons (
Browse files Browse the repository at this point in the history
  • Loading branch information
YassinNouh21 authored Dec 1, 2024
1 parent 243ae96 commit da6736a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/src/pages/quran/reading/quran_reading_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,6 @@ class NormalViewStrategy implements QuranViewStrategy {
) {
if (isPortrait) {
return [
BackButtonWidget(
isPortrait: isPortrait,
userPrefs: userPrefs,
focusNode: focusNodes.backButtonNode,
),
SurahSelectorWidget(
isPortrait: isPortrait,
focusNode: focusNodes.surahSelectorNode,
Expand All @@ -157,15 +152,15 @@ class NormalViewStrategy implements QuranViewStrategy {
focusNode: focusNodes.switchQuranNode,
isThereCurrentDialogShowing: false,
),
BackButtonWidget(
isPortrait: isPortrait,
userPrefs: userPrefs,
focusNode: focusNodes.backButtonNode,
),
];
}

return [
BackButtonWidget(
isPortrait: isPortrait,
userPrefs: userPrefs,
focusNode: focusNodes.backButtonNode,
),
_buildNavigationButtons(
context,
focusNodes,
Expand All @@ -188,6 +183,11 @@ class NormalViewStrategy implements QuranViewStrategy {
focusNode: focusNodes.switchQuranNode,
isThereCurrentDialogShowing: false,
),
BackButtonWidget(
isPortrait: isPortrait,
userPrefs: userPrefs,
focusNode: focusNodes.backButtonNode,
),
];
}

Expand Down

0 comments on commit da6736a

Please sign in to comment.