is includePadding not recommended as PlatformTextStyle is deprecated in jetpack compose?

jak*_*ang 12 android android-jetpack-compose

I'm developing with jetpack compose. When I use includePadding = false, in compose, the feature is used like below

platformStyle = PlatformTextStyle(includeFontPadding = false)
Run Code Online (Sandbox Code Playgroud)

But the jetpack compose docs say like below,

includeFontPadding was added to Android in order to prevent clipping issues on tall scripts. 
However that issue has been fixed since Android 28. 
Jetpack Compose backports the fix for Android versions prior to Android 28. 
Therefore the original reason why includeFontPadding was needed in invalid on Compose.
This configuration was added for migration of the apps in case some code or 
design was relying includeFontPadding=true behavior and will be removed
Run Code Online (Sandbox Code Playgroud)

As above mentioned, I'm confused with whether to use includePadding. Is there other way to use includePadding = false or Is it not recommended to use includePadding = false?

小智 0

根据回答时的相关内容,如果您使用的版本低于 1.6.0-alpha01,那么您可以毫无问题地使用它,而不必考虑弃用签名

2023 年 6 月更新:Compose ui 1.6.0-alpha01 是第一个版本,其中 includeFontPadding 默认切换为 false。

使用 Compose 1.2.0 中的 PlatformTextStyle API 来配置 includeFontPadding。对于少数 compose 版本,它被故意弃用,以表明它是一个兼容性 API,但在 compose 1.5 中已不再弃用,以鼓励开发人员使用它。

或者您可以简单地升级到最新版本并感到高兴

在这里阅读更多内容