Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
flutter-errors - Skill - OpenSmartRoute
Skillv1.0.0
flutter-errors
1. **RenderFlex overflowed**: check if a `Row` or `Column` contains unconstrained widgets. Fix by wrapping children in `Flexible`, `Expanded`, or by setting constraints. 2. **Vertical viewport was giv
Instruction file imported from duylequang2303/fieldforcemoblie (.cursor/rules/flutter-errors.mdc). Copyright stays with the author.
Common Flutter Errors & Rules (from evanca/flutter-ai-rules)
RenderFlex overflowed: check if a Row or Column contains unconstrained widgets. Fix by wrapping children in Flexible, Expanded, or by setting constraints.
Vertical viewport was given unbounded height: ensure ListView or similar scrollable widgets inside a Column have a bounded height (e.g., wrap with Expanded or SizedBox).
An InputDecorator...cannot have an unbounded width: constrain the width of widgets like TextField using Expanded, SizedBox, or by placing them in a parent with width constraints.
setState called during build: do not call setState or showDialog directly inside the build method. Trigger dialogs or state changes in response to user actions or after the build completes (e.g., using addPostFrameCallback).
The ScrollController is attached to multiple scroll views: make sure each ScrollController is only attached to a single scrollable widget at a time.
RenderBox was not laid out: check for missing or unbounded constraints in your widget tree. This is often caused by using widgets like ListView or Column without proper size constraints.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/duylequang2303-fieldforcemoblie-flutter-errors-rule/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"ocm": "1",
"id": "duylequang2303-fieldforcemoblie-flutter-errors-rule",
"kind": "skill",
"name": "flutter-errors",
"description": "1. **RenderFlex overflowed**: check if a `Row` or `Column` contains unconstrained widgets. Fix by wrapping children in `Flexible`, `Expanded`, or by setting constraints. 2. **Vertical viewport was given unbounded height**: ensure `ListView` or similar scrollable widgets inside a `Column` have a bounded height (e.g., wrap with `Expanded` or `SizedBox`). 3. **An InputDecorator...cannot have an unbounded width**: constrain the width of widgets like `TextField` using `Expanded`, `SizedBox`, or by placing them in a parent with width constraints. 4. **setState called during build**: do not call `setState` or `showDialog` directly inside the build method. Trigger dialogs or state changes in response to user actions or after the build completes (e.g., using `addPostFrameCallback`). 5. **The ScrollController is attached to multiple scroll views**: make sure each `ScrollController` is only attached to a single scrollable widget at a time. 6. **RenderBox was not laid out**: check for missing or unbounded constraints in ",
"publisher": "duylequang2303",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github-cursor-rules"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"1. **RenderFlex overflowed**: check if a `Row` or `Column` contains unconstrained widgets. Fix by wrapping children in `Flexible`, `Expanded`, or by setting constraints. 2. **Vertical viewport was given unbounded height**: ensure `ListView` or similar scrollable widgets inside a `Column` have a bounded height (e.g., wrap with `Expanded` or `SizedBox`). 3. **An InputDecorator...cannot have an unbounded width**: constrain the width of widgets like `TextField` using `Expanded`, `SizedBox`, or by placing them in a parent with width constraints. 4. **setState called during build**: do not call `setState` or `showDialog` directly inside the build method. Trigger dialogs or state changes in response to user actions or after the build completes (e.g., using `addPostFrameCallback`). 5. **The ScrollController is attached to multiple scroll views**: make sure each `ScrollController` is only attached to a single scrollable widget at a time. 6. **RenderBox was not laid out**: check for missing or unbounded constraints in "
],
"primary": false,
"metadata": {
"source": {
"provider": "github-cursor-rules",
"repository": "https://github.com/duylequang2303/fieldforcemoblie",
"path": ".cursor/rules/flutter-errors.mdc",
"ref": "0d1af9e624243b0ecdaf390509d18938d9167dba",
"url": "https://github.com/duylequang2303/fieldforcemoblie/blob/0d1af9e624243b0ecdaf390509d18938d9167dba/.cursor/rules/flutter-errors.mdc",
"key": "duylequang2303/fieldforcemoblie/.cursor/rules/flutter-errors.mdc"
},
"applies_to": [
"lib/**/pages/*.dart",
"lib/**/widgets/*.dart"
]
},
"instructions": "# Common Flutter Errors & Rules (from evanca/flutter-ai-rules)\n\n1. **RenderFlex overflowed**: check if a `Row` or `Column` contains unconstrained widgets. Fix by wrapping children in `Flexible`, `Expanded`, or by setting constraints.\n2. **Vertical viewport was given unbounded height**: ensure `ListView` or similar scrollable widgets inside a `Column` have a bounded height (e.g., wrap with `Expanded` or `SizedBox`).\n3. **An InputDecorator...cannot have an unbounded width**: constrain the width of widgets like `TextField` using `Expanded`, `SizedBox`, or by placing them in a parent with width co",
"cost": {
"context_tokens": 301
}
}
Fetch it by URL: GET /api/v1/registry/duylequang2303-fieldforcemoblie-flutter-errors-rule/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.