How hugohoffmann/ollyolly-weather-app works
Project type and purpose
• This is a cross-platform Flutter application (“weather app”) that runs on Android, iOS, Linux, macOS, Windows and Web.
• Purpose: present a login screen (admin/admin) and then fetch and display weather data from a public weather API in a card-based UI.
File structure
• Top-level Flutter scaffold:
• android/, ios/, linux/, macos/, windows/, web/ – platform-specific shells and build configs
• lib/ – main Dart code
• test/ – widget test
• pubspec.yaml, pubspec.lock – dependencies
• Within lib/:
• components/ – reusable UI widgets (button.dart, form.dart, textfield.dart, weatherCard.dart)
• pages/ – two screens (login.dart, home.dart)
• services/ – backend-facing logic (authentication.dart, likely weather_api.dart if added)
• main.dart – app entry and router
• Configurations: gradle scripts for Android; Xcode/Podfiles for iOS/macOS; CMake for desktop; index.html and manifest for Web.
README for additional insights
• Two pages: Login and Home
• “Consult a weather api and provide its information”
• Supports Web and mobile (iOS, Android)
• No internal backend—relies on external RESTful weather API