/neva-mobile:flutter-buildfrom neva-mobile
Fix Dart analyzer errors and Flutter build failures incrementally. Invokes the dart-build-resolver agent for minimal, surgical fixes.
Ships in neva-mobile. Installing the plugin adds it to Claude Code.
This command invokes the dart-build-resolver agent to incrementally fix Dart/Flutter build errors with minimal changes.
flutter analyze, flutter pub getUse /flutter-build when:
flutter analyze reports errorsflutter build fails for any platformdart pub get / flutter pub get fails with version conflictsbuild_runner fails to generate code# Analysis
flutter analyze 2>&1
# Dependencies
flutter pub get 2>&1
# Code generation (if project uses build_runner)
dart run build_runner build --delete-conflicting-outputs 2>&1
# Platform builds
flutter build apk 2>&1
flutter build web 2>&1
User: /flutter-build
Agent:
# Flutter Build Resolution
## Initial Diagnostics
```
$ flutter analyze
Analyzing project...
error • lib/features/user/data/user_repository_impl.dart:34:16 •
A value of type 'String?' can't be assigned to a variable of type 'String'. •
invalid_assignment
error • lib/features/cart/presentation/cart_page.dart:58:5 •
The method 'add' isn't defined for the type 'List<Item>'.
Try correcting the name to the name of an existing method, or defining a method named 'add'. •
undefined_method
2 errors found.
```
## Fix 1: Null Safety
File: lib/features/user/data/user_repository_impl.dart:34
Error: A value of type 'String?' can't be assigned to type 'String'
Changed:
```dart
final id = response.id;
```
To:
```dart
final id = response.id ?? '';
```
```
$ flutter analyze
1 error found.
```
## Fix 2: Immutable List
File: lib/features/cart/presentation/cart_page.dart:58
Error: The method 'add' isn't defined for the type 'List<Item>'
Cause: State holds an unmodifiable list; mutation goes through Cubit
Changed:
```dart
state.items.add(item);
```
To:
```dart
context.read<CartCubit>().addItem(item);
// Note: Cubit exposes named methods (addItem, removeItem);
// .add(event) is the BLoC event API: don't mix them.
```
```
$ flutter analyze
No issues found!
```
## Final Verification
```
$ flutter test
All tests passed.
```
## Summary
| Metric | Count |
|--------|-------|
| Analysis errors fixed | 2 |
| Files modified | 2 |
| Remaining issues | 0 |
Build Status: PASS
| Error | Typical Fix |
|---|---|
A value of type 'X?' can't be assigned to 'X' | Add ?? default or null guard |
The name 'X' isn't defined | Add import or fix typo |
Non-nullable instance field must be initialized | Add initializer or late |
Version solving failed | Adjust version constraints in pubspec.yaml |
Missing concrete implementation of 'X' | Implement missing interface method |
build_runner: Part of X expected | Delete stale .g.dart and rebuild |
The agent will stop and report if:
/flutter-test: Run tests after build succeeds/flutter-review: Review code qualityverification-loop skill: Full verification loopagents/dart-build-resolver.mdskills/flutter-dart-code-review/What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub laith0003/neva --plugin neva-mobile7 commands in this plugin
/flutter-reviewFlutter Code ReviewReview Flutter/Dart code for idiomatic patterns, widget best practices, state management, performance, accessibility, and security. Invokes the flutter-reviewer agent./flutter-testFlutter TestRun Flutter/Dart tests, report failures, and incrementally fix test issues. Covers unit, widget, golden, and integration tests./gradle-buildGradle Build FixFix Gradle build errors for Android and KMP projects/kotlin-buildKotlin Build and FixFix Kotlin/Gradle build errors, compiler warnings, and dependency issues incrementally. Invokes the kotlin-build-resolver agent for minimal, surgical fixes./kotlin-reviewKotlin Code ReviewComprehensive Kotlin code review for idiomatic patterns, null safety, coroutine safety, and security. Invokes the kotlin-reviewer agent./kotlin-testKotlin TDD CommandEnforce TDD workflow for Kotlin. Write Kotest tests first, then implement. Verify 80%+ coverage with Kover.Other plugins' commands for the same job