Skip to content

Android: plain dates are dropped because TYPE_DATE is unmapped #34

Open

Description

@developerjamiu
// android/src/main/kotlin/com/developerjamiu/smart_text_flutter/TextClassifier.kt:116
"datetime" -> ItemSpan(currentText, "datetime", currentText)

TextClassifier.TYPE_DATE is the string "date", which has no branch, so plain dates fall through to else -> "text" and render unstyled.

This is what the README reports as "DateTime is not supported on Android". It is a missing when branch, not a platform limitation: TYPE_DATE has been available since the TextClassifier API landed.

Fix: add a "date" branch alongside "datetime", and update the README note.

Found during the v0.4.0 codebase audit.

Activity

  1. added
    bug
    platform: android
    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: android

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions