fluttercommunity / fluttercommunity/flutter_webview_plugin

Drawer Hack

オープン
#113 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
1.5k
フォーク
938
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

AppBar の leading button と issue にある _handleDrawer の例から始め、example app で drawer と webview rect がどのように表現されているかを追ってください。完了条件は、drawer を開くと webview の hidden state が true に設定され、閉じると false に戻り、app で toggle の動作が検証されていることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
flutter
領域
mobile
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。