SNS Hospitals App
A Flutter app for Portugal's public hospitals, built with a classmate for a university class, across two phases. Beyond the required features, we focused on a clean architecture and on an app that keeps working offline.

- Role
- Co-developer
- Team
- 2 people
- Context
- University class
- Stack
- Flutter · Dart · SQLite · Google Maps
I built this with a classmate for a mobile development class at university, over two phases, each with its own set of requirements. We mostly built it together. Sometimes one of us took charge of a screen or of getting a specific test to pass, but we reviewed each other's code, suggested improvements, and designed the interface by pitching ideas for what to add and how to present the information.
We used the Repository pattern in a layered architecture. The interface only talks to a repository, which gets hospital information from the SNS API and falls back to the data saved in a local SQLite database when there’s no internet connection, so users can still view it offline. This also keeps the business logic out of the widgets.
Dependencies are injected with Provider, a widely used approach in Flutter. The data sources and device services, like location and connectivity, are defined as interfaces and registered once at startup, and screens get them from the widget tree instead of creating them.