Skip to content

SmartSelectableText silently ignores four public parameters #33

Open

Description

@developerjamiu

SmartSelectableText declares locale, softWrap, overflow and selectionColor, documents them alongside parameters that do work, and passes none of them to SelectableText.

Verified: each is declared once and used zero times in lib/src/widgets/smart_selectable_text.dart. SmartText forwards all four correctly, so this is divergence between the two widgets rather than a deliberate design.

SelectableText has no equivalent parameters, so they cannot simply be forwarded.

Fix: remove them from the constructor. This is a breaking change, but the alternative is four public parameters that silently do nothing.

Found during the v0.4.0 codebase audit.

Activity

  1. added
    bug
    api
    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

    apibug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions