Sololo
05/25/2021, 5:50 AMBrian G
05/25/2021, 1:09 PMkotlin.srcDir
in both Android/Desktop source sets, which compiles perfecty but I get lots of red imports in Android Studiotheapache64
05/27/2021, 5:40 PMIgor Demin
05/27/2021, 6:49 PMandroidx.compose.ui.window.Dialog
androidx.compose.ui.window.MenuBar
androidx.compose.ui.window.Tray
moved to another package:
androidx.compose.ui.window.v1.Dialog
androidx.compose.ui.window.v1.MenuBar
androidx.compose.ui.window.v1.Tray
We are developing the new Composable Window API
And it conflicts with the old one, so we have to do this (to keep the package androidx.compose.ui.window
for 1.0).
The new window API will be provided as experimental in upcoming releases, but eventually it will supersede the old one.
(AppWindow, AppManager, androidx.compose.ui.window.v1.*, androidx.compose.desktop.Window
).Ch8n
05/27/2021, 9:04 PMVadim Kapustin
05/28/2021, 12:01 PMColton Idle
06/01/2021, 1:39 PMolonho
06/02/2021, 11:41 AMAlexander Suraphel
06/03/2021, 10:22 PMCh8n
06/03/2021, 11:37 PMFruit Ninja
🥝 on Jetpack Compose Desktop 🚀 using Canvas API 🎨
Show some love on Twitter
https://twitter.com/Ch8n2/status/1400593860649054213?s=20
Repository link :
https://github.com/ch8n/Compose-Fruit-Ninjaspierce7
06/04/2021, 4:44 AMDominaezzz
06/04/2021, 4:11 PMCasey Brooks
06/11/2021, 9:22 PMMichał Kalinowski
06/13/2021, 6:18 PMKirill Grouchnikov
06/15/2021, 3:20 PMKirill Grouchnikov
06/15/2021, 4:19 PMsaket
06/17/2021, 1:34 PMsaket
06/17/2021, 8:47 PM.dmg
for macOS. jpackage has this information in their documentation. What would this translate to with compose for desktop?Adam Brown
06/19/2021, 7:32 PMCh8n
06/20/2021, 12:18 AMFlocking Algorithm
in Jetpack Compose Canvas API 🚀
- I created the implementation of 2D Vectors in p5js
in Kotlin
, you can see the implementation [here](https://github.com/ch8n/Compose-boids-flocking/blob/main/src/main/kotlin/utils.kt)
- Used vector to resolve the forces acting on the particles cohesion, Alignment and Separation
- Lastly created a push force vector for mouse
checkout the code from here
https://github.com/ch8n/Compose-boids-flocking
share some love on twitter if you like it
https://twitter.com/Ch8n2/status/1406395627173384192?s=20Spikey Sanju
06/20/2021, 11:01 AMSpikey Sanju
06/20/2021, 11:03 AMIvan Pavlov
06/23/2021, 12:42 AMLazyVerticalGrid
building. Sometimes it adds an empty row after the grid itself (1 and 4 screenshots) and sometimes it doesn't (2 and 3). The full code is here
fun main() = application {
Window {
val numDays: Int = 31
val firstDayOfWeek = 4
val lastDayOfWeek = 7
MaterialTheme {
Column {
Row() {
LazyVerticalGrid(cells = GridCells.Fixed(7)) {
repeat(firstDayOfWeek) {
item {
Box(Modifier.size(40.dp)) {
Text("-")
}
}
}
repeat(numDays) { day ->
item {
Box(Modifier.size(40.dp)) {
Text("${day + 1}")
}
}
}
repeat(7 - lastDayOfWeek) {
item {
Box(Modifier.size(40.dp)) {
Text("-")
}
}
}
}
}
Row(horizontalArrangement = Arrangement.End, modifier = Modifier.fillMaxWidth()) {
Button(onClick = {}) {
Text("OK")
}
Spacer(Modifier.width(10.dp))
Button(
onClick = {},
colors = ButtonDefaults.buttonColors(backgroundColor = MaterialTheme.colors.error),
) {
Text("Cancel")
}
}
}
}
}
}
Does anybody know if I do something wrong or it's a bug or something like that?DanielDay
06/23/2021, 7:59 AMAkram Bensalem
06/29/2021, 10:55 PMgbaldeck
07/01/2021, 3:20 AMCompositionLocalProvider
not working. User error 🙂Colton Idle
07/03/2021, 1:41 AMapp
module, and then a my_composables
module.
I converted the project to support kmm in order to get compose for desktop working. Now my_composables
is a kmm module with
androidMain
commonMain
desktopMain
main
I put a brand new HelloWorld
composable in common, and can now use that common composable in my app
module and desktopApp
module. All is good with the world AND I can slowly migrate my android only composables from main
into commonMain
.
That's my current strategy. Slowly migrate from main
into commonMain
. Is that "bad" or wrong? Should I just shove everything into androidMain
? Basically asking "is main
in a kmm module a bad pattern?"SrSouza
07/05/2021, 6:05 PMColton Idle
07/06/2021, 6:43 PMSteve
07/08/2021, 11:08 AM