A starter project to begin any new flutter project.
It has the GetX package and some more custom helpers and packages to help the dev to build their apps with ease.
It uses the MVC pattern which is one of the best pattern among developers.
Clone the repository
git clone https://github.com/thedevsbuddy/flutter_fusion.git my_awesome_projectgit clone https://github.com/thedevsbuddy/flutter_fusion.git my_awesome_project --branch without_theme_builderHere are some awesome features which you will get by default when scaffolding your project with this starting project.
- MVCs Pattern: We are using
MVCpattern to manage whole project easily as it separates the Logic and UI and models. But i added new layer as Service which will help us communicate with APIs. - Modular Structure: Most of the developers are the fan of Modular Structure as it gives the flexibility to use a module on any project we build.
- Module Generator Tool: I have built a simple module generator tool to help you generate any module with just a single command.
- Mock-Able Services: Sometimes we don't have any api to test and build our apps so we need to do some mockups for apps here we cover that as well.
This package is added as a helper toolkit to generate the module in the project with just a command line.
flutter pub run modulr:generate BlogThis will generate all the files required for a Module
Generated Files Inside your project's lib/app/modules directory.
📂 Blog
├── 📂 controllers
│ └── 📄 BlogController.dart
├── 📂 routes
│ ├── 📄 BlogRouter.dart
│ └── 📄 BlogRoutes.dart
├── 📂 services
│ ├── 📄 AppBlogService.dart
│ ├── 📄 BlogService.dart
│ └── 📄 MockBlogService.dart
├── 📂 views
│ └── 📄 BlogPage.dart
└── 📄 BlogModule.dartflutter pub run modulr:controller Comment --on=BlogThis will generate the new controller (CommentController.dart) inside the Blog Module.
📂 Blog
├── 📂 controllers
│ ├── 📄 BlogController.dart
│ └── 📄 CommentController.dartflutter pub run modulr:service Comment --on=BlogIf any module doesn't have services already you can generate services for the module using this command.
Generated Files:
📂 Blog
├── 📂 services
│ ├── 📄 AppCommentService.dart
│ ├── 📄 CommentService.dart
│ └── 📄 MockCommentService.dartNote: This will check for the services directory inside the provided module name. if it exists it wont generate any file and return void.