天气

天气应用,提供当前天气、48小时每小时预报、7天每日预报以及全国天气警报。

如何运行

功能

- Architecture pattern
    - Bloc 
        - Cubit
        - Repository Provider
        - Multi Bloc Provider
        - Bloc Provider
        - Bloc Builder
        - Bloc Consumer
        - Bloc Listener
        - State Management
    - Context Passing
        - Bloc/Cubit context passing in navigation
- Theme
    - Multi Theme
        - Dark
        - Light
    - Typography
- Storage
    - Hydrated Bloc
        - Local Storage with state management
    - Path Provider
- Netwok
    - Interface
        - Interface for http methods
            - Get
            - Put
            - Post
            - Delete
        - Interface implementation for 'Dio' library
    - Data Model
    - Data Provider
        - Respository
        - Services/API Call
    - Parsing
    - Interceptor
        - Auth
        - Token
    - Singleton Instance of netwrok
- Nagivation
    - Navigation with onGeneratedRoute
        - Navigation router name
    - Nagivation service
        - Singleton context
        - Methods
            - Puhs
            - Push and replace
            - Push and remove until
            - Pop
            - Pop to rooot
- Reuseable Widget
    - Button
    - TextFiled
    - Search TextFiled
    - Listview
        - Hourly forcast
        - Daily forcast
        - Favourite card
- Extra
    - Utils
        - Enums
        - Constants
        - Regexp
    - Helper
        - Common function
    - Extension
        - Color
        - Fonts
        - String

GIF动图

黑暗 浅色
Alt text Alt text

截图

浅色模式

Alt text Alt text
Alt text Alt text
Alt text

深色模式

Alt text Alt text
Alt text Alt text
Alt text

iOS快速查看

iOS Notes here.

Android快速查看

Android Notes here.

插件

本仓库使用的插件及其版本。

插件 Pub
flutter_bloc Pub
equatable Pub
hydrated_bloc Pub
path_provider Pub
lottie Pub
flutter_svg Pub
dio Pub
intl Pub

GitHub

查看 Github