Skip to content

Commit 183367e

Browse files
author
GitLab CI
committed
chore: Release v0.4.8
Fix Infinity/NaN crash when inspecting widgets
1 parent 06df3e2 commit 183367e

File tree

8 files changed

+24
-7
lines changed

8 files changed

+24
-7
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## 0.4.8
2+
3+
**Fix Infinity/NaN crash when inspecting widgets**
4+
5+
### Bug Fixes
6+
- 🐛 Fixed "Unsupported operation: Infinity or NaN toInt" crash in `_findInteractiveElements`
7+
- ✅ Added `safeRound()` helper function to handle invalid numeric values
8+
- 🛡️ Widget bounds calculation now safely handles `Infinity` and `NaN` values (returns 0)
9+
- 🔧 Prevents MCP error -32603 when inspecting widgets with problematic layouts
10+
- 📦 Supports edge cases: `Positioned.fill`, `FractionalTranslation`, and malformed widget trees
11+
12+
### Technical Details
13+
- Checks `value.isFinite` before calling `.round()` on position/size values
14+
- Gracefully degrades to `{x: 0, y: 0, width: 0, height: 0}` for invalid bounds
15+
16+
---
17+
118
## 0.4.7
219

320
**Auto-update flutter_skill dependency in target projects**

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ flutter-skill launch /path/to/project
262262
1. Add dependency:
263263
```yaml
264264
dependencies:
265-
flutter_skill: ^0.4.7
265+
flutter_skill: ^0.4.8
266266
```
267267
268268
2. Initialize in main.dart:

intellij-plugin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = "com.aidashboad"
8-
version = "0.4.7"
8+
version = "0.4.8"
99

1010
repositories {
1111
mavenCentral()

intellij-plugin/src/main/resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<idea-plugin>
22
<id>com.aidashboad.flutterskill</id>
33
<name>Flutter Skill - AI App Automation</name>
4-
<version>0.4.7</version>
4+
<version>0.4.8</version>
55
<vendor email="support@ai-dashboad.com" url="https://github.com/ai-dashboad/flutter-skill">ai-dashboad</vendor>
66

77
<description><![CDATA[

lib/src/cli/server.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import '../flutter_skill_client.dart';
77
import '../diagnostics/error_reporter.dart';
88
import 'setup.dart';
99

10-
const String _currentVersion = '0.4.7';
10+
const String _currentVersion = '0.4.8';
1111

1212
/// Session information for multi-session support
1313
class SessionInfo {

npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flutter-skill-mcp",
3-
"version": "0.4.7",
3+
"version": "0.4.8",
44
"description": "MCP Server for Flutter app automation - Give your AI Agent eyes and hands inside your Flutter app",
55
"main": "index.js",
66
"bin": {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_skill
22
description: Give your AI Agent eyes and hands inside your Flutter app.
3-
version: 0.4.7
3+
version: 0.4.8
44
homepage: https://github.com/ai-dashboad/flutter-skill
55
repository: https://github.com/ai-dashboad/flutter-skill
66
# publish_to: 'none' # Remove this when ready to publish to pub.dev

vscode-extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "flutter-skill",
33
"displayName": "Flutter Skill - AI App Automation",
44
"description": "Give your AI Agent eyes and hands inside your Flutter app. Bridge between AI coding assistants (Claude Code, Cursor, Windsurf) and running Flutter applications with 25+ MCP tools for UI inspection, gestures, screenshots, and more.",
5-
"version": "0.4.7",
5+
"version": "0.4.8",
66
"publisher": "ai-dashboad",
77
"icon": "images/icon.png",
88
"repository": {

0 commit comments

Comments
 (0)