Skip to content

Commit

Permalink
Added TODO on requesting help to replace WillPopCallback to PopEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders Cheow committed Jan 9, 2024
1 parent 759d441 commit c0f95e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/flutter/drawer.dart
Expand Up @@ -86,9 +86,11 @@ mixin VxDrawer {
return Future.value(false);
}

// TODO(iampawan): Not sure how to change it to use `PopEntry`
route?.addScopedWillPopCallback(backClose);

hide = () async {
// TODO(iampawan): Not sure how to change it to use `PopEntry`
route?.removeScopedWillPopCallback(backClose);
await key.currentState?.reverseAnimation();
overlayEntry?.remove();
Expand Down

0 comments on commit c0f95e6

Please sign in to comment.