Skip to content

refactor: migrate off APIs deprecated in Compose 1.13.0 - #182

Merged
xelon-ua merged 2 commits into
mainfrom
migrate-off-text-and-material-apis-deprecated-in-compose-1-1
Dec 3, 2026
Merged

xelon-ua merged 2 commits into
mainfrom
migrate-off-text-and-material-apis-deprecated-in-compose-1-1

Conversation

@xelon-ua

@xelon-ua xelon-ua commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Clears the deprecation warnings Compose Multiplatform / Material 3 1.13.0 introduced, without breaking consumers' source.

Changes

  • TableTextField, TableCellTextField, TableCellTextFieldWithTooltipError: new overloads take outputTransformation and run on TextFieldState; value stays the truth. The visualTransformation overloads are deprecated and keep the old implementation. Their transformation has no default any more (two all-default overloads would be ambiguous), so binaries built against them need a recompile.
  • TableDatePicker text input: InputTransformation keeps the digits, OutputTransformation shows the separators.
  • RangeSlider: the state is updated on every composition. The suggested rememberRangeSliderState keeps its first values, so the slider would ignore typed numbers.
  • ListItem: the new overload drops the 48 dp touch targets of its slots; DialogListItem restores them. Rows of the format dialog can shift by a few dp.
  • runComposeUiTest takes ComposeUiTestConfig; compose.desktop.currentOs becomes desktop-jvm.

Testing

  • Text-field and date-input tests written first, green on the old code, then on the new.
  • qualityCheck; JVM (817), JS (806), Wasm (806) and iOS simulator (784) tests pass; Android sample assembles.
  • A clean JVM compile and the Gradle scripts report no deprecation warnings; the web, iOS and Android builds report none either.
  • Not tried on a physical device.

Compose 1.13.0 deprecated VisualTransformation and the value-based
BasicTextField. The table's text fields now run on TextFieldState behind
the same value / onValueChange, and take an OutputTransformation. The
overloads with visualTransformation stay, deprecated, on the old
implementation until 4.0.

RangeSlider, ListItem, runComposeUiTest and compose.desktop.currentOs
move to their replacements. ListItem no longer gives its slots a minimum
touch target, so the format dialog restores it.
@xelon-ua

xelon-ua commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

Squash commit message:

refactor: migrate off APIs deprecated in Compose 1.13.0

Compose 1.13.0 deprecated VisualTransformation and the value-based
BasicTextField. The table's text fields now run on TextFieldState behind
the same value / onValueChange, and take an OutputTransformation. The
overloads with visualTransformation stay, deprecated, on the old
implementation until 4.0.

RangeSlider, ListItem, runComposeUiTest and compose.desktop.currentOs
move to their replacements. ListItem no longer gives its slots a minimum
touch target, so the format dialog restores it.

@xelon-ua
xelon-ua merged commit 88ef1d7 into main Dec 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant