79239151

Date: 2024-11-30 09:04:50
Score: 1
Natty:
Report link

correctify someone's answer

To @Róbert Nagy's answer

According to How to Use Tooltips in Jetpack Compose

There are now TooltipBox function (added in 1.2.1 version in androidx.compose.material3 dependency)

The TooltipBox function is defined as follows.

fun TooltipBox(
    positionProvider: PopupPositionProvider,
    tooltip: @Composable TooltipScope.() -> Unit,
    state: TooltipState,
    modifier: Modifier = Modifier,
    focusable: Boolean = true,
    enableUserInput: Boolean = true,
    content: @Composable () -> Unit,
)

To Art Shendrik's answer

There are no PlainTooltipBox function in 1.3.1 version in androidx.compose.material3 dependency.

No PlainTooltipBox function in 1.3.1 version in androidx.compose.material3 dependency.

Here are code snippets of libs.version.toml (I use the Maven)

libs.version.toml

[versions]
// ...
material3 = "1.3.1"

[libraries]
// ...

androidx-material3 = { group = "androidx.compose.material3", name = "material3" }
material3 = { group = "androidx.compose.material3", name = "material3", version.ref = "material3" }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Róbert
  • Low reputation (1):
Posted by: GeeksMathGeeks