fluttercommunity / fluttercommunity/flutter_webview_plugin
Drawer Hack
- Lingua principale
- Java
- Stelle
- 1.5k
- Fork
- 938
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia dal pulsante leading di AppBar e dall’esempio _handleDrawer nell’issue, quindi segui come drawer e webview rect sono rappresentati nell’app di esempio. Il lavoro è completato quando l’apertura di drawer imposta il hidden state di webview su true e la chiusura lo ripristina a false, con il comportamento di toggle verificato nell’app.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- flutter
- Ambito
- mobile
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100