fluttercommunity / fluttercommunity/flutter_webview_plugin

Drawer Hack

Abierto
#113 5 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
1.5k
Forks
938
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.