You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Binder: TextFieldState is bound without members or a way to create it #73
pythonx-compose TextField design (#10 there) uses the state-based overload TextField(state=...) of Compose 1.11 (typing stays in Compose; no Python round trip per key). In the stubs (run 37098191598) androidx/compose/foundation/text/input/__init__.pyi has class TextFieldState: with no members, and nothing returns one.
the TextFieldState(initialText, initialSelection) constructor (outside a composition)
the TextFieldState.text getter (CharSequence; reading it from Python should give a str)
the extension functions TextFieldState.setTextAndPlaceCursorAtEnd(String) and TextFieldState.clearText()
First find out why these are missing (package not walked? declined — with which reason? value-class/inline/opt-in?) and fix that cause rather than special-casing TextFieldState.
Completion: a :ksp-fixtures:compose test creates a TextFieldState from Python (both ways), draws TextField(state=s), sets text with setTextAndPlaceCursorAtEnd and reads s.text back as str; the regenerated stubs carry the four members; all modules green.
Activity
Fix: Keep primitive value-class constructors as functions, mark const…
b-re-w commentedon Oct 3, 2026
Landed in develop via #84.