Refactors the login page and model for improved separation of concerns. Moves navigation logic from the model to the page using success callbacks. Integrates a dedicated primary button component for the login action, showing loading state.
Adds a new secure route for a product form page and updates the scanner page to navigate to it when viewing scanned product details.
Simplifies the callback signature for viewing product details in the scanned product component. Also includes minor adjustments to the splash screen delay and theme definition.
Adds a logout button to the home page app bar.
Implements the logout logic in the login page model, clearing the stored user token.
Navigates to the splash screen after logout to handle redirection based on the updated authentication state.