Scaffold Flutter project from Laravel :) with GetX to accomplish Laravel structure.
Create
Flutter project viashell_exec
- Structure it like Laravel
- Scaffold
- 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
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.
- Install
composer require anandpilania/laravel-flutter-getx
- Publish the
config
php artisan vendor:publish --tag=laravel-flutter-getx
-
Configure the
flutter apps
pathconfig\laravel-flutter-getx.php
-
Create Flutter Project
php artisan flutter:create project_name
flutter:make:binding
=> w/ocontroller
&|provider
flutter:make:controller
=> w/oprovider
flutter:make:exception
=> w/o messageflutter:make:lang
flutter:make:mock
=> w/omodel
flutter:make:model
=> w/omock
flutter:make:provider
=> w/o sampleflutter:make:service
flutter:make:view