anandpilania / laravel-flutter-getx
Laravel package that easily scaffold Flutter project as Laravel structure & GetX
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
pkg:composer/anandpilania/laravel-flutter-getx
Requires
- php: ^7.4 || ^8.0
- laravel/framework: ^8.12
- symfony/yaml: ^5.2
README
Scaffold Flutter project from Laravel :) with GetX to accomplish Laravel structure.
What it'll do:
- CreateFlutter project via- shell_exec
- Structure it like Laravel
- Scaffold
Structure
- lib
  - app
    - bindings // DI
    - controllers // Business Logic
    - exceptions
    - models
    - providers // API communications
    - services // Global/App services
  - config // App config
  - mocks // Mocking data in 'dev' env
  -resources
    - lang
    - views
      - widgets
  - main.dart
  - routes.dart // Route management
[WINDOWS ONLY: till now] IF YOU WANT TO CREATE NEW FLUTTER APP WITH THIS STRUCTURE:
1: Clone the repo,
2: Open cmd & change the working dir to bin & run,
.\win-structure.bat APP_NAME
This will first run flutter create command & structure your new app afterthat.
How to use
- Install
composer require anandpilania/laravel-flutter-getx
- Publish the config
php artisan vendor:publish --tag=laravel-flutter-getx
- 
Configure the flutter appspathconfig\laravel-flutter-getx.php
- 
Create Flutter Project 
php artisan flutter:create project_name
Other commands
- flutter:make:binding=> w/o- controller&|- provider
- flutter:make:controller=> w/o- provider
- flutter:make:exception=> w/o message
- flutter:make:lang
- flutter:make:mock=> w/o- model
- flutter:make:model=> w/o- mock
- flutter:make:provider=> w/o sample
- flutter:make:service
- flutter:make:view