anandpilania/laravel-flutter-getx
最新稳定版本:v1.0.3
Composer 安装命令:
composer require anandpilania/laravel-flutter-getx
包简介
Laravel package that easily scaffold Flutter project as Laravel structure & GetX
README 文档
README
Scaffold Flutter project from Laravel :) with GetX to accomplish Laravel structure.
What it'll do:
CreateFlutter project viashell_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/ocontroller&|providerflutter:make:controller=> w/oproviderflutter:make:exception=> w/o messageflutter:make:langflutter:make:mock=> w/omodelflutter:make:model=> w/omockflutter:make:provider=> w/o sampleflutter:make:serviceflutter:make:view
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-14