FilledStacks / FilledStacks/flutter-tutorials
Prevent AppDrawer from reloading
- Lenguaje dominante
- Dart
- Estrellas
- 4.8k
- Forks
- 1.7k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
El issue no menciona ningún archivo del repositorio ni ninguna prueba; comienza con el tutorial enlazado sobre arquitectura de UI responsiva y la implementación de AppDrawer que describe. Reproduce la navegación con los cambios indicados en el modelo route/isActive y verifica después que los cambios de página ya no recarguen AppDrawer y que el enfoque elegido para la navegación y el resaltado esté documentado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- dart, flutter
- Área
- frontend, mobile
- Tipo de issue
- Error
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 20/100