allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.ehsannarmani:ComposeDialog:latest_version'
}
Dialog(
visible = true or false,
duration = 2000,
position= Alignment.BottomCenter,
dialogEnterAnim = expandHorizontally(),
dialogExitAnim = shrinkHorizontally(),
onEnd = { ... },
...
) {
Text(
text = "...",
color = Color.White,
fontSize = 13.sp,
textAlign = TextAlign.Justify
)
}