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

Add ability to know if the drawer is opened or closed #3

Closed
ElZombieIsra opened this issue Apr 24, 2020 · 5 comments
Closed

Add ability to know if the drawer is opened or closed #3

ElZombieIsra opened this issue Apr 24, 2020 · 5 comments

Comments

@ElZombieIsra
Copy link

I'm currently working with this plugin (pretty great, btw) but I see is lacking the ability to know if the drawer is opened or closed.
I think this is a very important feature to this plugin.
I guess this could be implemented in the ZoomDrawerController.

When I have a little more free time I can work on this if you can't

@medyas
Copy link
Owner

medyas commented Apr 24, 2020

Thank you for the feedback, and will add this in the next 48h

@medyas
Copy link
Owner

medyas commented Apr 24, 2020

Quick question, will rather two booleans isOpen and isClosed or a drawer status enum ?

@ElZombieIsra
Copy link
Author

I was thinking a boolean in the ZoomDrawerController called isOpen. That seems enough. What do you think?

@medyas
Copy link
Owner

medyas commented Apr 24, 2020

Yeah, that's fine with me. Will work on it today.

@medyas
Copy link
Owner

medyas commented Apr 24, 2020

Have added :

_drawerController.isOpen();
ZoomDrawer.of(context).isOpen();

which will return a bool whether the drawer is fully open or not.
flutter_zoom_drawer

will close this issue, i have an issue with the implementation of the feature open it again.

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