Colton Idle
08/07/2021, 2:44 AMFrank
08/07/2021, 10:08 AMAlexander Suraphel
08/07/2021, 1:32 PMAlexander Suraphel
08/07/2021, 2:02 PMcompose-jb
I’m getting this error from IntelliJ.Alexander Suraphel
08/07/2021, 2:03 PM*Duplicate Content Roots Detected:* Path [/Users/alexander/playground/compose/compose-jb/examples/codeviewer/common/src/commonMain/resources] of module [codeviewer.common.desktopMain] was removed from modules [codeviewer.common.commonMain]
Alexander Suraphel
08/07/2021, 2:03 PMtheapache64
08/21/2021, 10:20 AMspierce7
08/22/2021, 3:17 PMrsktash
08/25/2021, 4:36 PMPHondogo
08/26/2021, 7:12 PMtheapache64
08/31/2021, 11:33 AMFrank
09/01/2021, 9:34 AMorg.jetbrains.compose") version "0.5.0-build225"
but the @Preview - Annotation is not found anymore? Any ideas how to fix this?Frank
09/01/2021, 9:53 AMFrank
09/01/2021, 10:02 AMimport androidx.compose.material.Text
import androidx.compose.runtime.Composable
@Preview
@Composable
fun testText() {
Text( text = "This is a test!")
}
Mahir Chowdhury
09/01/2021, 9:05 PMMahir Chowdhury
09/01/2021, 9:05 PMMahir Chowdhury
09/01/2021, 9:06 PMLazyRow(
state = listState,
modifier = Modifier.fillMaxWidth().padding(50.dp, 0.dp)
.pointerInput(Unit) {
detectHorizontalDragGestures { _, dragAmount ->
coroutineScope.launch {
if (dragAmount < 0) {//scroll right
listState.animateScrollToItem( listState.firstVisibleItemIndex+2)
} else if (dragAmount > 0) {//scroll left
listState.animateScrollToItem(listState.firstVisibleItemIndex -1)
}
}
}
},
horizontalArrangement = Arrangement.spacedBy(10.dp)
)
Here's how I did itMahir Chowdhury
09/01/2021, 9:07 PMMahir Chowdhury
09/02/2021, 12:14 AMMahir Chowdhury
09/02/2021, 12:15 AMMahir Chowdhury
09/02/2021, 12:15 AMxxfast
09/02/2021, 1:26 AM>0.4.0
? Is there any way to debug this? i’m using android build tools version 7.0.0
along with gradle 7.0.2
Colton Idle
09/02/2021, 5:48 AMdarkmoon_uk
09/02/2021, 6:36 AMxxfast
09/02/2021, 6:40 AMdarkmoon_uk
09/02/2021, 6:41 AMdarkmoon_uk
09/02/2021, 6:41 AMColton Idle
09/02/2021, 6:44 AMdarkmoon_uk
09/02/2021, 6:51 AM7.0.0
- what the 4.x.0
version @Colton Idle?
(Sounds old 🙂 But I'm guessing it's something 'out of band')xxfast
09/02/2021, 6:52 AM