fluttercommunity / fluttercommunity/flutter_webview_plugin

Drawer Hack

Offen
#113 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
1.5k
Forks
938
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.