Skip to content

iOS: invalid arguments leave the Dart future pending forever #32

Open

Description

@developerjamiu
// ios/smart_text_flutter/Sources/smart_text_flutter/SmartTextFlutterPlugin.swift:16
guard let args = call.arguments as? String else { return }

Returns without ever calling result. The Dart side then awaits a reply that never arrives. Because nothing throws, the try/catch in SmartTextFlutter.classifyText cannot catch it, and the widget sits on its fallback branch indefinitely.

Fix: result(FlutterError(code: "invalid_argument", ...)) in the else branch.

Found during the v0.4.0 codebase audit.

Activity

  1. added
    bug
    platform: ios
    on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugplatform: ios

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions