Код: Выделить всё
class AboutDialog : DialogFragment() {
// ...
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View = inflater.inflate(R.layout.about_dialog, container, false).apply {
findViewById(R.id.about_view).apply {
setViewCompositionStrategy(DisposeOnViewTreeLifecycleDestroyed)
setContent {
AboutScreen()
}
isClickable = true
}
}
}
Код: Выделить всё
Код: Выделить всё
@Composable
fun AboutScreen {
MyTheme {
Scaffold { contentPadding ->
Box(
Modifier
.padding(contentPadding)
.fillMaxSize()
.verticalScroll(rememberScrollState())
) {
Column {
// ...
}
}
}
}
}

Как настроить ширина диалогового окна?
Подробнее здесь: https://stackoverflow.com/questions/783 ... se-content
Мобильная версия