354 questions
3
votes
0
answers
45
views
:kotlinWasmNpmInstall and :kotlinNpmInstall can't proceed to find dependencies
After setting up my project with Compose Multiplatform Wizard, I successfully ran the desktop version, but had issue with the web version.
When I try to run :kotlinWasmNpmInstall and :kotlinNpmInstall,...
4
votes
1
answer
154
views
How to reliably prevent screenshots on iOS in Kotlin Multiplatform (Compose Multiplatform)?
I'm building an app using Kotlin Multiplatform (Compose Multiplatform) and need to prevent screenshots on sensitive screens (QR codes) for security reasons.
What Works:
Android - Using FLAG_SECURE ...
1
vote
1
answer
144
views
Update Compose view from non-observable large data
Let's say, I have 2D array of cells, managed from external engine with following API:
width/height (both val)
get/set(x,y)
nextState()
onUpdate(() -> Unit)
I want to render it. It can be simple ...
-1
votes
0
answers
74
views
How to fix the size of adaptive admob banner in compose multiplatform for iOS?
Trying to integrate Adaptive AdMob for iOS part of myCcompose Multiplatform project.
I followed these materials:
A guy from Medium: https://medium.com/@diegoturchi95/admob-integration-in-compose-...
0
votes
0
answers
27
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
2
answers
468
views
How to use NavigationBackHandler?
I currently have the following code in my Compose Multiplatform project:
var myStateVariable by rememberSaveable { mutableStateOf(false) }
BackHandler(myStateVariable) {
myStateVariable = false
}
...
2
votes
0
answers
43
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
...
0
votes
0
answers
63
views
androidx.lifecycle.viewmodel.compose.viewModel not found after upgrading to Compose
I'm upgrading to Compose 1.9.
So I've upgraded the following dependencies:
androidx-lifecycle = "2.9.4" from 2.8.0
androidx-navigation = "2.9.0" from 2.7.0-alpha06
compose-plugin = ...
1
vote
0
answers
176
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
186
views
Compose Multiplatform: How to lock specific screens to portrait or landscape (Android & iOS)
I’m building an app with Compose Multiplatform (Kotlin Multiplatform) and I need to control the screen orientation for certain screens.
For example:
Screen X should always be shown in landscape mode.
...
0
votes
0
answers
79
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.
...
0
votes
1
answer
79
views
Jetpack Compose: How to align item in Row so that it is at same height than other item?
In Jetpack Compose, I have a Row with two Columns. In Column A, there is only one Text item and in Column B, there are three text items. I would like the center part to be at the same height, i.e. in ...
1
vote
0
answers
69
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 ...
0
votes
0
answers
48
views
How to add library to CMP project manually?
I need to add a library manually because it’s not yet available on Maven. It’s a development version of the library. https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/androidx/...
5
votes
3
answers
438
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 ...