A powerful CLI tool to help Flutter developers automatically generate screens, set up Dio & SharedPreferences, and integrate API methods into BLoC/Cubit architecture—all with one command!
- 🔄 Generates screen folders with Cubit/BLoC structure.
- ⚙️ Auto-configures
DioHelperwith a base URL via interactive prompts. - 💾 Sets up
CachedHelperfor usingSharedPreferences. - 🔌 Optionally adds boilerplate API methods (GET, POST, PUT, DELETE) directly to generated Cubits.
- ✅ Checks and adds required dependencies (
dio,flutter_bloc, etc.) topubspec.yaml. - 🚀 Saves development time and enforces consistency across your codebase.
Add the package as a dev dependency to your Flutter project:
dart pub add flutter_screen_generator --dev
## 🚀 Usage
Run the command with `flutter_screen_generator` as the executable name
```bash
dart run flutter_screen_generator:flutter_screen_generator <screen_name>dart run flutter_screen_generator:flutter_screen_generator settings