-
Notifications
You must be signed in to change notification settings - Fork 936
Drawer Hack #113
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
Comments
Isn't this what #86 added? (didn't have a closer look myself) |
Yeah #86 looks like it allows toggling the webview being hidden OR displayed. But it's going to be clunky because the transition will look weird. You hide the webview and the screen goes white and the drawer starts to slide across from left to right. What do you think ? |
what is the function to show and hide the webview because i tried these and they are not right : |
@gedw99 I thought about taking a screenshot but never had the chance to test it and I don't know if it is possible. @ahmedkassem try to upgrade the package, functions you are trying to use are correct |
@lejard-h i will give it a try , but can you help with the function when the drawer is open and the user clicks on the screen itself not the drawer (on drawer dismiss i want to fire the flutterWebviewPlugin.hide(); function) |
can we assign the hidden attribute to the state and create a function to toggle between hidden = true and hidden = false , to hide the webview rect when the drawer is opened
and we use the leading in Appbar to control that
State and function to toggle visibility
bool _visibility = false; _handleDrawer(){ _scaffoldKey.currentState.openDrawer(); setState(() { _visibility = true; }); }
appBar: new AppBar( centerTitle: true, leading: new IconButton(icon: new Icon( Icons.menu ),onPressed:_handleDrawer,), title: new Text('Plugin example app'), ),
so when the drawer is opened the state of the webview hidden is true , and when drawer is closed hidden is false
I am a beginner and i cant make the toggle function to work
The text was updated successfully, but these errors were encountered: