- This project is an open-source template built with Flutter and BLOC architecture.
- It comes with a range of features and allows you to quickly get started by adding your own screens, models, and BLOCs.
- The template is designed to help you build scalable and maintainable applications with ease.
- It includes public and private routes, user management, roles and permissions, dark and light themes, mock data or API data, API client, internationalization, access control with Flutter and Firebase, and CI/CD with Github Actions.
- The template is suitable for building applications for Android, iOS, and the web.
- It is easy to customize and extend the template to meet your specific requirements.
- The template is well-documented and easy to use.
- It is a great starting point for building your next Flutter project.
- The template has separate environments for development and production.
- It can work API and Mock data.
- BLoC Pattern(Data, Models, Repository, Presentation), Environments, Configuration, Themes, IOS,
- Android/IOS and Web
- Public and Private Routes
- Home Page
- Private Pages
- Admin Pages
- User Pages
- Public Pages
- Guest Pages
- Access the public pages
- Private Pages
- User Management
- Login
- Register
- Forgot Password
- Update Profile
- Change Password
- Roles and Permissions
- Dark and Light Themes
- Mock data or API data
- API client
- Internationalization
- Access Control with Flutter and Firebase
- CI/CD with Github Actions
git clone https://github.com/cevheri/flutter-bloc-advanced.git
- for serialize and deserialize json to object
dart run build_runner build --delete-conflicting-outputs
- fix dart analyze
dart analyze --fix
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
- 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
- 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
- Run
flutter test
To add new screens, models, and BLOCs, follow these steps:
- Add New Screens Add your new screens to the lib/screens directory.
- Add New Models Add your new model classes to the lib/models directory.
- Add New BLOCs Add your new BLOC classes to the lib/bloc directory and perform necessary operations.
- API Integration Integrate with APIs using the services provided in the lib/api directory.
- Flutter Firebase Setup
- Flutter Firebase Setup with Github Actions
- Flutter Firebase Setup with Github Actions and Firebase Hosting
- Flutter Firebase Deploy
- Flutter Firebase Deploy with Github Actions
- Flutter Firebase Deploy with Github Actions and Firebase Hosting
- Fork the repository
- Clone your forked repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request