353 questions
0
votes
0
answers
20
views
Why can I not start the Server-Application after the Desktop-Application (in Android Studios/Compose Multiplatform)?
I can't start the Server-application after executing the Desktop- or Web-application in a Compose Multiplatform project.
This makes it hard to test the server coming online and going offline while ...
2
votes
0
answers
38
views
VNDocumentCameraViewController corrupting Compose's popup system on iOS
After using VNDocumentCameraViewController in Compose Multiplatform iOS, all popup-based components (AlertDialog, DatePickerDialog, ExposedDropdownMenuBox) stop working.
Open AlertDialog - works fine
...
1
vote
0
answers
153
views
Layout issues opening keyboard
I'm developing a typical chat screen, with the text input at the bottom. The app has a bottom bar with tabs and a topbar.
I'm struggling at getting what I understand to be the expected behavior (...
0
votes
0
answers
69
views
How to add space between text input and top of keyboard
My screen has an input field at the bottom. When opening the keyboard (Android, iOS), it pushes the input to the top so it stays above the keyboard. The baseline of the input is above the keyboard.
...
1
vote
0
answers
49
views
How to Handle a Redirect with a Custom URI Scheme in Compose Multiplatform for Desktop (jvmRun) on Windows?
I am developing a desktop application for Windows using Compose Multiplatform and implementing an external web login flow (e.g., OAuth). After a successful login in the browser, the service needs to ...
5
votes
3
answers
332
views
Can not use kotlinx-datetime:0.7.1 library with rememberDatePickerState() function of material3
Material3 rememberDatePickerState() crashing in desktop and iOS platforms.
I am using kotlin = "2.2.10" version for my Kotlin Compose Multiplatform (KMP/CMP) project. It runs fine on android ...
1
vote
1
answer
59
views
Compose Multiplatform - localized strings.xml files ordering for deterministic build
In Compose Multiplatform, can I specify the order in which localized strings.xml files (e.g., values-ar, values-de, etc.) are processed, so that it can be deterministic.
Right now i have a build that ...
2
votes
1
answer
158
views
Missing CircularWavyProgressIndicator after updating to Compose Multiplatform 1.9.0-beta03
I recently updated my project to Compose Multiplatform 1.9.0-beta03 and Material3 1.9.0-beta03. After the update, I can no longer access:
CircularWavyProgressIndicator
ButtonDefaults....
0
votes
1
answer
66
views
Sticky header stuck in top Jetpack Compose
I wanted to make header sticky header for relevant header. Which is expandable.
data class Section(
val header: String,
val items: List<String>
)
val sections = listOf(
Section(&...
0
votes
0
answers
86
views
BackHandler Compose Multiplatform not working on iOS
I have kmm app with 1.8.0 compose-multiplatform and I've added
ui-backhandler = { module = "org.jetbrains.compose.ui:ui-backhandler", version.ref = "compose-multiplatform" }
Code ...
0
votes
1
answer
88
views
How to include a custom folder into Compose for Desktop installer using Gradle?
I have a Kotlin Project using Compose for Desktop on Windows (IntelliJ). I built the installer with the Gradle tasks provided by the libary.
When installing the program, I want the installer to copy a ...
0
votes
0
answers
53
views
How to make common dropdown for two TextFields in Jetpack Compose?
I want to make a common dropdown for two TextField. I have manage to do something like following. But there is a problem with focusing. When I click again on the second TextField to open dropdown, it ...
1
vote
1
answer
595
views
Compose Multiplatform Project (Android Target): Resources not working in module
Full reproducible example here
I'm working on a Jetpack Compose Multiplatform project. In my module ui-system, I have a drawable located at:
ui-system/src/commonMain/composeResources/drawable/compose-...
1
vote
1
answer
64
views
What is the difference between application() and awaitApplication() in Compose Multiplatform Desktop?
There are two functions to be used as the entry point for a CMP desktop application:
fun
usage
application()
fun main() = application { ... }
awaitApplication()
suspend fun main() = awaitApplication { ...
2
votes
2
answers
131
views
Avoid applying Sentry plugin to unsupported native targets(Js)
I'm working on Compose Multiplatform (CMP) project that targets Android, iOS, and JS (browser) platforms. I'm trying to integrate Sentry to track logs and errors across android and ios platforms.
I've ...
0
votes
1
answer
100
views
How to override language to get localised string for a specific language in Kotlin Multiplatform project?
I have 2 language support in my app. Language files are arranged like below:
composeApp/src/commonMain/composeResources/values/lang.xml
composeApp/src/commonMain/composeResources/values-bn/lang.xml
...
0
votes
0
answers
42
views
how to take full screenshot in KMP Compose. actual iOS
package goodeva.smartsafety.opa.kmp.presentation.feature.upload
import platform.UIKit.*
import platform.Foundation.*
import platform.CoreGraphics.*
import kotlinx.cinterop.*
actual class ...
2
votes
1
answer
97
views
How, in Compose, set the size of an element to a specific children's size?
The setup
In Jetpack Compose, I have a Column (gray) with two elements, a long text (yellow) and a short text (cyan):
@Composable
@Preview
fun Foo() = Column(
Modifier
.background(Color....
1
vote
2
answers
758
views
How to implement edge-to-edge display on iOS in Kotlin Multiplatform (KMP) Compose project?
I'm working on a Kotlin Multiplatform project using Compose Multiplatform for iOS. My current implementation leaves the status bar area empty/blank, and I want to achieve true edge-to-edge display ...
0
votes
0
answers
114
views
How to feed UI with Server Sent Events in Compose Multiplatform
The endpoint sends Server Sent Events, as strings and it is reactive(Same as Firebase). Each record corresponds to one line(or one string), then I map it to the actual data class.
I want it to create ...
0
votes
0
answers
40
views
How to make Android Studio open the source code instead of a knm file?
I'm making a Compose Multiplatform project. Everything works fine, but when i want to view the source code of some classes/files, i get this:
@Composable
public final fun DragHandle(
modifier: ...
0
votes
1
answer
100
views
How to position a dialog in a different position than the default in compose multiplatform?
In a typical android project, I can change the position of my dialog as follows:
Dialog(
onDismissRequest = onDismiss,
properties = DialogProperties(usePlatformDefaultWidth = false)
...
1
vote
1
answer
67
views
How to identify mouse "back" event in Compose Multiplatform?
I'm trying to identify the mouse "back" event in compose multiplatform using the pointerInput modifier from this answer. But it is not working. I have already tried to debug it, but it seems ...
-1
votes
1
answer
312
views
How to use drawabless in compose multiplatform?
I'm developing a Compose Multiplatform app and want to use the same PNG drawable assets for both Android and iOS.
So far I understand, I need to use the same PNGs for both platforms like this:
For ...
2
votes
0
answers
84
views
LaunchedEffect/DisposableEffect behaves differently in IOS, and its weird
I tested the following code in IOS, and it seems weird for me in Simulator.
@Composable
fun FakeScreen() {
LaunchedEffect(Unit) {
launch {
var count = 0
while(true)...