We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcb3fc8 commit 4674565Copy full SHA for 4674565
1 file changed
mobile-app/lib/ui/views/learn/widgets/pass/pass_widget_view.dart
@@ -208,6 +208,14 @@ class PassButton extends StatelessWidget {
208
width: MediaQuery.of(context).size.width,
209
child: TextButton(
210
onPressed: () async {
211
+ // Close the end drawer if open before navigating.
212
+ // This is needed to ensure the back navigation works correctly.
213
+ final scaffoldState = model.scaffoldKey.currentState;
214
+ if (scaffoldState != null && scaffoldState.isEndDrawerOpen) {
215
+ scaffoldState.closeEndDrawer();
216
+ await Future.delayed(const Duration(milliseconds: 300));
217
+ }
218
+
219
model.closeWebViews();
220
model.disposeOfListeners();
221
0 commit comments