flutter_mobx
MobX용 플러터 통합입니다. 추적되는 관측 가능한 값이 변경될 때 자동으로 재구성되는 Observer 위젯 세트를 제공합니다.
전 세계 도시에서 날씨 데이터를 가져옵니다!
MobX용 플러터 통합입니다. 추적되는 관측 가능한 값이 변경될 때 자동으로 재구성되는 Observer 위젯 세트를 제공합니다.
MobX는 애플리케이션 상태를 반응적으로 관리하는 라이브러리입니다. 관찰 가능한 항목, 액션 및 반응의 힘을 활용하여 Dart 및 Flutter 앱을 강화하세요.
MobX용 코드 생성기로 @observable, @computed, @action를 사용하여 코드에 주석을 달고 Store 클래스를 생성하는 기능을 추가합니다.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
This project is my first one built in flutter, and I was inspired by the Flutter Modular architecture to structure the folders:
Weather Today app preview
The project uses the MetaWeather API to fetch a list of cities and their respective weather data such as minimum and maximum temperature, weather state, date, wind speed and direction.
You can install this app on your android phone downloading the apk file weather-today.apk in this repository.
The application is pretty simple, it is a one page application with a search bar and it has mainly three states: the first screen when the user is not searching anything, the main screen that shows the user data fetched from the API, and an error screen in case something wrong happens.
This app was made as an extension of the terminal app built in the Dart complete course from Andrea Bizzotto on Udemy, but as I transformed it into a flutter app, I felt the need of a project architecture. For that reason I chose to sctucture my project based on the Flutter Modular architecture, because I find it easy to understand and also scalable.
The project folders are structured like this:
/lib
/models
/modules
/search
/repositories
/results
/theme
Inside models you can find the classes created to best represent data from the API.
Modulesare the pages inside the app and since it is a unique page application, we only have the search module. Inside it we have the repository, responsible for fetching data from the API.
This project was made inspired by the app built on the Dart complete course by Andrea Bizzotto. I have to thank the girls from Flutter Girls who always support and help me in every issue I bump into, you are the best!