Repository navigation
Rediseño visual de InvenTrack - #15
Conversation
This file contains visual styles and UI components for InvenTrack, including color definitions and various widgets such as SurfacePanel, SectionHeading, SoftIcon, StatTile, StatusTag, and EmptyPanel.
Added a custom theme for InvenTrack and refactored the main app structure for better readability and organization.
Refactor inventory page to improve layout and functionality. Updated product search and registration features, enhanced UI elements, and improved state management.
Refactored StockCard widget to improve readability and maintainability. Introduced helper methods for color, text, and icon based on stock quantity.
Refactor MovimientoCard widget to use InvenTrackStyle for colors and update layout for better readability.
Updated test for product and inventory flow with simulated API. Enhanced mock responses for various API endpoints.
Updated comments in the widget test to improve clarity and consistency.
Refactor test widget for product and inventory flow with simulated API responses. Improved comments for clarity and streamlined code structure.
|
| import 'package:inventrack/screens/productos_page.dart'; | ||
| import 'package:inventrack/screens/inventario_page.dart'; | ||
| import 'package:inventrack/screens/productos_page.dart'; | ||
| import 'package:inventrack/ui/inventrack_style.dart'; |
There was a problem hiding this comment.
Buena decisión centralizar los estilos en ui/inventrack_style.dart. ¿Los colores y tipografías salen del Theme o están fijos? Si están fijos, el modo claro/oscuro del PR #16 tendría que duplicarlos en cada pantalla
| _selectedIndex = index; | ||
| }); | ||
| }, | ||
| onDestinationSelected: _selectPage, |
There was a problem hiding this comment.
Buen refactor: sacar el setState en línea a _selectPage deja build más limpio y permite reutilizar el cambio de pestaña desde el dashboard (onNavigate). Faltaría una prueba de widget que verifique que tocar cada destino cambia el índice
| class HomePage extends StatefulWidget { | ||
| const HomePage({super.key, this.salir}); | ||
|
|
||
| final VoidCallback? salir; |
There was a problem hiding this comment.
El callback salir es opcional (nullable). ¿Qué pasa en la UI cuando viene null: se oculta el botón de salir o queda inactivo? Sería bueno cubrir los dos casos con una prueba de widget en frontend/test/



Nuevo diseño de inicio, productos e inventario. Pruebas automáticas aprobadas.