一键导入
riverpod-provider-generator
Scaffolds a new Riverpod `@riverpod` class and (if needed) a corresponding Freezed state class, then triggers the build runner.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffolds a new Riverpod `@riverpod` class and (if needed) a corresponding Freezed state class, then triggers the build runner.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Sweeps the `assets/` folder and registers them in `pubspec.yaml`, preventing runtime "Asset not found" crashes.
Executes `dart run build_runner build -d` to generate code for packages like Freezed, JSON Serializable, and Riverpod.
Applies Dart fixes and formats Dart code according to standard guidelines.
Generates a standard Domain-Driven Design (DDD) feature-first directory structure inside the `lib` folder.
Configures and runs the `flutter_launcher_icons` package to generate native app icons for iOS and Android.
Safely modifies `AndroidManifest.xml` and `Info.plist` to add native permissions (e.g., Camera, Location, Storage).
| name | riverpod-provider-generator |
| description | Scaffolds a new Riverpod `@riverpod` class and (if needed) a corresponding Freezed state class, then triggers the build runner. |
When the user asks to create a "Riverpod provider", "Notifier", or "State manager" using the code generation syntax (@riverpod):
part directive for .g.dart (and .freezed.dart if they asked for a complex state).Example Template:
import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'my_feature_provider.g.dart';
@riverpod
class MyFeature extends _$MyFeature {
@override
int build() {
return 0; // Initial state
}
// Add methods to mutate state here
}
build-runner skill):dart run build_runner build -d