Skip to content

Flutter Template : BLoC Pattern(Data, Models, Repository, Presentation), Environments, Configuration, Themes, IOS, Android and Web

Notifications You must be signed in to change notification settings

sifaaral/flutter-bloc-advanced

 
 

Repository files navigation

IN PROGRESS

  • Add BLoC Pattern
  • Add Folder Structure
  • Add Environments
  • Add Configuration
  • Add Themes
  • Add Internationalization
  • Add Firebase
  • Add Home Page
  • Add Login Page
  • Add User Management
  • Add Roles and Permissions
  • Add Task Management
    • dummy task list with bloc
    • [ ]
  • Add CI/CD

Advanced Flutter BLoC Project

BLoC Pattern(Data, Models, Repository, Presentation), Environments, Configuration, Themes, IOS, Android and Web

Features

  • Public and Private Routes
  • Home Page
    • Private Pages
      • Admin Pages
      • User Pages
    • Public Pages
      • Guest Pages
      • Access the public pages
  • User Management
    • Login
    • Register
    • Forgot Password
    • Update Profile
    • Change Password
  • Roles and Permissions
  • Task Management
    • Create a new task
    • Update a task
    • Delete a task
    • List all tasks
    • Assign a task to a user
    • Mark a task as completed
  • API client
  • Internationalization
  • Access Control with Flutter and Firebase
  • CI/CD with Github Actions

Requirements

  • for serialize and deserialize json to object
dart run build_runner build --delete-conflicting-outputs
  • fix dart analyze
dart analyze --fix

Getting Started

  • Clone this repository
  • Run flutter pub get
  • Run flutter run --target lib/main/main-dev.dart for dev environment
  • Run flutter run --target lib/main/main-prod.dart for prod environment

flutter run dev environment

  • Run flutter run -d chrome --target lib/main/main-dev.dart for web dev environment
  • Run flutter run -d chrome --target lib/main/main-prod.dart for web prod environment

How to Build

  • Run flutter build apk --target lib/main/main-prod.dart for android
  • Run flutter build ios --target lib/main/main-prod.dart for ios
  • Run flutter build web --target lib/main/main-prod.dart for web

How to Run

  • Clone this repository
  • Run flutter pub get
  • Run flutter run --target lib/main/main-dev.dart for dev environment
  • Run flutter run -d chrome --target lib/main/main-dev.dart for web
  • Run flutter run -d ios --target lib/main/main-dev.dart for ios
  • Run flutter run -d android --target lib/main/main-dev.dart for android
  • Run flutter run -d web --target lib/main/main-dev.dart for web

How to Test

  • Run flutter test

CI/CD with Github Actions

Firebase

How to Setup Firebase

How to Deploy Firebase

How to Contribute

  • Fork the repository
  • Clone your forked repository
  • Create your feature branch
  • Commit your changes
  • Push to the branch
  • Create a new Pull Request

About

Flutter Template : BLoC Pattern(Data, Models, Repository, Presentation), Environments, Configuration, Themes, IOS, Android and Web

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 75.0%
  • C++ 12.3%
  • CMake 9.8%
  • Swift 1.1%
  • HTML 1.0%
  • C 0.7%
  • Other 0.1%