Yusuf Ibragimov
03/26/2024, 5:18 AMNurlibay
03/26/2024, 11:23 AMval composeBom = platform("androidx.compose:compose-bom:2022.10.00")
implementation(composeBom)
androidTestImplementation(composeBom)
implementation("androidx.compose.runtime:runtime")
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.foundation:foundation")
implementation("androidx.compose.foundation:foundation-layout")
implementation("androidx.compose.material:material")
implementation("androidx.compose.runtime:runtime-livedata")
implementation("androidx.compose.ui:ui-tooling")
composeOptions {
kotlinCompilerExtensionVersion = "1.3.2"
}
buildFeatures {
compose = true
viewBinding = true
}
I'm getting this error:
How I fix it? Please help me. I think this error related to some versions. But I don't know which ones.Colton Idle
03/26/2024, 12:36 PMJon Bailey
03/28/2024, 10:18 AMcomposeView.consumeWindowInsets = false
. This roughly makes sense to me, but I just wondered if there is any downside to doing this/why false isn't the default?Colton Idle
03/28/2024, 2:05 PMRohit Jakhar
03/29/2024, 8:14 AMYusuf Ibragimov
03/29/2024, 10:07 AMShivam Verma
03/29/2024, 3:18 PMCompositionLocal
values from a custom modifier ? It seems a CompositionLocalConsumerModifierNode
can only read CompositionLocal
values.Flammer99
04/01/2024, 3:45 PMTravis Griggs
04/01/2024, 8:47 PMMichael Paus
04/03/2024, 10:14 AMLucas Kivi
04/03/2024, 9:23 PMmodifier
should be. Seems like there are two options:
1. Always at the end
2. Wherever it exists in the signature of the function
// signature
fun UiStuff(
mandatoryState: MandatoryState,
modifier: Modifier = Modifier,
optionalState: OptionalState = OptionalState.A,
content: @Composable () -> Unit = {},
) { ... }
// call-site option 1
UiStuff(
mandatoryState = MandatoryState.A,
optionalState = OptionalState.A,
modifier = modifier
.background(...)
.border(...)
.androidPixyDust(...),
) {
// Content
}
// call-site option 2
UiStuff(
mandatoryState = MandatoryState.A,
modifier = modifier
.background(...)
.border(...)
.androidPixyDust(...),
optionalState = OptionalState.A,
) {
// Content
}
Lucas Kivi
04/05/2024, 5:21 PMModalBottomSheetLayout
will be ported to Material3
? The Material3
ModalBottomSheet
has some limitations that make it unusable for me. I either need to hack up the BottomSheetScaffold
or use the Material
ModalBottomSheetLayout
and suppress the UsingMaterialAndMaterial3Libraries
warning.Hemant Nimje
04/06/2024, 6:58 AMAjay Chandran
04/10/2024, 6:09 AMAbhimanyu
04/10/2024, 5:22 PMraghunandan
04/11/2024, 5:11 AMbryankeltonadams
04/11/2024, 6:52 AMFred Bowker
04/11/2024, 2:52 PMJanusz Chorko
04/11/2024, 4:16 PMdispatchTouchEvent
method and the coordinates are correct and correspond to me touching the screen in those places at that time.
Also non-compose applications also run fine.
How can I further debug what is messing with compose or providing wrong input? How does it even acquire touch events from the system?axrorxoja
04/12/2024, 5:05 PM@Composable
fun SampleText(modifier: Modifier = Modifier) {
Text(
text = "مرحباً، صباح الخير يا عزيزي",
overflow = TextOverflow.Clip,
softWrap = false,
maxLines = 1,
modifier = modifier
.background(color = Color.White)
.width(120.dp)
)
}
if I use overflow with softWrap false in RTL language, it cuts down from beginning of text(from the right) not from the end of the text(from left)
does someone know how to fix such a issue ?
thank you in advanceColton Idle
04/12/2024, 11:31 PMMyM3Theme{
MyM2Theme{
RootApp
}
}
Colton Idle
04/13/2024, 6:14 PMColton Idle
04/14/2024, 5:49 PMVishal Bhandare
04/15/2024, 7:01 AMDaniele B
04/15/2024, 12:35 PM@Composable
fun MyComposable(url: String) {
val webClient = CustomWebViewClient()
val showLoadingMessage by remember { mutableStateOf(true) }
Box(modifier = Modifier.fillMaxSize()) {
AndroidView(
factory = { context -> WebView(context).apply { webViewClient = webClient } },
update = { webView -> if (!webClient.loaded) { webView.loadUrl(url) } else { showLoadingMessage = false } }
)
if (showLoadingMessage) {
Text(text = "I am loading the page...")
}
}
}
class CustomWebViewClient: WebViewClient(){
var loaded = false
override fun onPageFinished(view: WebView?, url: String?) {
loaded = true
}
}
Colton Idle
04/15/2024, 1:13 PMAjay Chandran
04/15/2024, 1:23 PMTom De Decker
04/16/2024, 10:11 AMTlaster
04/18/2024, 5:16 AMDialog
. Are there any plans to address this issue?