这是indexloc提供的服务,不要输入任何密码
Skip to content

This project is a Flutter application that utilizes the Bloc pattern for state management and integrates with a GraphQL API. The project is organized with clean architecture principles, makingit scalable and maintainable.

Notifications You must be signed in to change notification settings

imsujan276/flutter_graphql_clean_arch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Bloc with GraphQL API Project

Overview

This project is a Flutter application that utilizes the Bloc pattern for state management and interacts with a GraphQL API. The project structure is organized to ensure clean architecture, making the code scalable and maintainable.

Project Structure

The project follows a layered architecture with the following main directories:

data

data_sources:

Contains the data source implementations, such as API services.

api_services.dart: Handles the communication with the GraphQL API.

repository_impl:

Contains the repository implementation classes.

home/repository_impl.dart: Implementation of the repository for the home module.

domain

dependency_injection:

Handles dependency injection setup.

dependency_injection.dart: Configures dependencies for the application.

models:

Contains the data models used in the application.

home/film_data_model.dart: Data model for film data in the home module.

repository:

Contains the repository interface classes.

home/home_repository.dart: Repository interface for the home module.

presentation

bloc:

Contains the Bloc, Event, and State classes for state management.

home_bloc.dart: Bloc class for the home module. home_event.dart: Event class for the home module. home_state.dart: State class for the home module.

views:

Contains the UI components of the application.

screens:

Contains the screen widgets. home_page.dart: Home page of the application.

widgets:

Contains reusable UI components. home/home_failure_widget.dart: Failure widget used in the home module.

utils

constants.dart:

Contains constants used throughout the application.

About

This project is a Flutter application that utilizes the Bloc pattern for state management and integrates with a GraphQL API. The project is organized with clean architecture principles, makingit scalable and maintainable.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 78.9%
  • Ruby 13.0%
  • Swift 6.4%
  • Kotlin 1.3%
  • Objective-C 0.4%