Skip to content

Provides a structured development approach and allows development teams to share business logic, resources, and components across multiple apps on Android, iOS, linux, macos, windows and web applications.

License

Notifications You must be signed in to change notification settings

dhiyaulhaqZA/flutter-monorepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Monorepo Template

Flutter Monorepo is a centralized repository that enables cross-platform app development using Flutter in an efficient and highly scalable manner. This monorepo provides a structured development approach and allows development teams to share business logic, resources, and components across multiple apps on Android, iOS, linux, macos, windows and web applications.

Tech Stacks

How to use

  1. Use template or clone this repository
  2. Install melos by dart pub global activate melos or skip this step if already installed
  3. Execute melos bootstrap
  4. Done. Run example app by melos run:example or cd apps/example then flutter run

How to generate new app

  1. cd apps
  2. flutter create app_name

How to generate new package

  1. cd packages
  2. flutter create --template=package package_name

How to integrate my package to app

  1. Go to your app folder
  2. Open pubspec.yaml
  3. Add dependency
dependencies:
  flutter:
    sdk: flutter
  uikit:
    path: ../../packages/uikit
  utils:
    path: ../../packages/utils
  your_package:
    path: ../../packages/your_package
  1. Execute melos bootstrap

File Structure

- apps
  - app_01
  - app_02
  - app_03
- packages
  - uikit
  - utils
  - other_reusable_code

In this file structure, there are two main directories:

  1. apps: This directory contains specific Flutter applications such as app_01, app_02, and app_03. Each application directory can contain code and resources related to that specific application, such as user interface components, business logic, and application configurations.
  2. packages: This directory contains reusable packages for Flutter application development. Some example packages that might be included are:
    • uikit: A package that includes reusable UI components such as buttons, cards, or other UI elements. This enables consistent user interfaces across applications developed within the monorepo.
    • utils: A package that includes utility functions or helper tools that can be reused across multiple applications, such as helper functions for data manipulation, network connections, or image processing.
    • other_reusable_code: Other packages that contain reusable code, such as specific utilities, constants, or algorithms used in multiple applications within the monorepo.

This file structure allows for the separation of business logic and reusable components into separate packages, facilitating code reusability and easier maintenance across multiple applications within the monorepo.

Please note that the above structure is just a starting template, and you can customize it according to your project's needs and preferences.

About

Provides a structured development approach and allows development teams to share business logic, resources, and components across multiple apps on Android, iOS, linux, macos, windows and web applications.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published