Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get.close() doesnt close drawers #3227

Open
WMOH-DEV opened this issue Sep 28, 2024 · 0 comments
Open

Get.close() doesnt close drawers #3227

WMOH-DEV opened this issue Sep 28, 2024 · 0 comments
Assignees

Comments

@WMOH-DEV
Copy link

WMOH-DEV commented Sep 28, 2024

Describe the bug
Previosuly i used Get.back() to close the drawer, and now im working on Getx5 i tried to use Get.close(); instead but it doesnt work also Get.back(); doesnt work also the other options like Get.closeAllOverlays();
only one works Get.backLegacy();

**Reproduction code

ListTile(
                      leading: const Icon(
                        Icons.new_releases,
                      ),
                      title: TextComponent(
                        text: tNewAdd.tr,
                        fontSize: 16,
                      ),
                      onTap: () {
                        // controller.scaffoldKey.currentState!.closeDrawer(); => works
                        // Navigator.of(context).pop(); => works 
                        // Get.closeAllOverlays(); => doesn't work
                        // Get.close(); => doesn't work
                        // Get.back(); => doesn't work
                        Get.backLegacy(); //=> works
                      },
                    ),

Flutter Version:
Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (2 weeks ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3

Getx Version:
get: ^5.0.0-release-candidate-9.2

Describe on which device you found the bug:
Android - Note 9 / Iphone 15 pro max

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants