FilledStacks / FilledStacks/flutter-tutorials
Prevent AppDrawer from reloading
- 主要言語
- Dart
- スター
- 4.8k
- フォーク
- 1.7k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi...I'm really digging all your tutorials! I've learned so much from you. Thank you!
I've implemented the responsive AppDrawer just as you've done here: https://www.filledstacks.com/post/building-a-responsive-ui-architecture-in-flutter/
In order to make the AppDrawerOptions navigable, I modified the model by adding ```route``` and ```isActive``` properties and removing ```static``` from ```getDrawerOptions()```. The ```isActive``` property is a boolean and changes depending on the active route; in this way, I know which AppDrawerOption to highlight. Anyway, I'm noticing that the AppDrawer reloads on every page load. Is there a way to prevent it from reloading? Is my approach the best way to go about this?
Thanks in advance.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
この issue ではリポジトリのファイルもテストも指定されていないため、まずリンクされたレスポンシブ UI アーキテクチャのチュートリアルと、そこで説明されている AppDrawer の実装から始めてください。報告された route/isActive モデルの変更を使ってナビゲーションを再現し、その後、ページの変更によって AppDrawer が再読み込みされなくなったこと、および選択したナビゲーションとハイライトのアプローチが文書化されていることを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- dart, flutter
- 領域
- frontend, mobile
- issue の種類
- バグ
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100