https://kotlinlang.org
Join Slack
I'm trying to set the icon for a desktop application in Kotlin Multiplatform (KMP), but it doesn't s...
b

Bhadra Vaghela

10 months ago
I'm trying to set the icon for a desktop application in Kotlin Multiplatform (KMP), but it doesn't seem to be working. I’ve added the icon in the
nativeDistributions
block like this:
application {
    nativeDistributions {
        windows {
            iconFile.set(project.file("src/main/resources/app_icon.ico"))
        }
    }
}
However, the icon isn’t changing. I’ve checked that the files are in
src/main/resources/
, and I’m using the correct formats (
.ico
for Windows). I've also tried: ✅ Using an absolute file path for the icon. ✅ Updating the Compose Multiplatform Gradle plugin. ✅ Running
./gradlew clean packageDistributionForCurrentOS
. But no luck so far. Do you have any suggestions or know if there’s another step I might be missing?
b
m
  • 2
  • 1
  • 380
Did anyone try the new `RippleConfiguration` apis from material 1.3.0(-beta)s yet? I am trying to cu...
a

Alex

over 1 year ago
Did anyone try the new
RippleConfiguration
apis from material 1.3.0(-beta)s yet? I am trying to customize the Ripple alpha but cannot get the defaults. The old way (
RippleTheme.defaultRippleAlpha
) is deprecated, the deprecation message advises me to use
MaterialRippleThemeDefaults#RippleAlpha
but
MaterialRippleThemeDefaults
does not exist. Does anyone know where to get the platform defaults?
a
s
  • 2
  • 5
  • 380
Hi all! I’m trying to use the Snackbar on my compose multiplatform (1.5.0) project, right now on and...
f

ferranpons

about 2 years ago
Hi all! I’m trying to use the Snackbar on my compose multiplatform (1.5.0) project, right now on android and iOS, but I can’t make it display by any means. Do you know if there is an issue with it? Many thanks in advance!
f
j
  • 2
  • 2
  • 380
Migrating from accompanist `FlowRow` to one in core Compose....this is what I had previously. From ...
j

John O'Reilly

over 2 years ago
Migrating from accompanist
FlowRow
to one in core Compose....this is what I had previously. From https://android-developers.googleblog.com/2023/03/whats-new-in-jetpack-compose-march-23-release.html, it seems equivalent is now
horizontalArrangement = Arrangement.spacedBy(8.dp)
but with that I'm not see any vertical spacing.
FlowRow(crossAxisSpacing = 8.dp) {
    session.tags.forEach { tag ->
        Chip(tag)
    }
}
j
b
+2
  • 4
  • 6
  • 380
What’s a good way to read YAML and/or CSV?
r

rednifre

about 3 years ago
What’s a good way to read YAML and/or CSV?
r
a
  • 2
  • 1
  • 380
hello is it possible to use Kotlin with Ionic UI framework. Maybe there is some solution or would be...
g

grzesiekmq

over 6 years ago
hello is it possible to use Kotlin with Ionic UI framework. Maybe there is some solution or would be?
g
r
  • 2
  • 1
  • 380
Im in a ridiculous situation with nested Scaffolds, someone please help? :warning: The gist of it i...
z

Zoltan Demant

8 months ago
Im in a ridiculous situation with nested Scaffolds, someone please help? ⚠️ The gist of it is that Im using one at the root of a feature just to properly inset a Toolbar, then delegating content to screen A/B. Screens A & B both have their own Scaffold setup so that placement of Fab, NavigationBar and stuff like that is correctly inset. Removing the nesting improves performance by a lot. Do I just handle insets manually to eliminate the Scaffold? I.e. at the root do this instead of letting Scaffold (basically) do it?
Column {
    Toolbar()

    Box(Modifier.consumeWindowInsets(WindowInsets.statusBars)) {
        Content()
    }
}
z
s
a
  • 3
  • 22
  • 379
Hey, whats the easiest way in kotlin to generate something like a pdf export? In particular, I want ...
m

Marc

over 1 year ago
Hey, whats the easiest way in kotlin to generate something like a pdf export? In particular, I want to generate a pdf for a weekly duty schedule, which has a pretty complicated layout.
m
m
+5
  • 7
  • 38
  • 379
Hi all .. I’ve run into an odd issue with Compose Navigation. I’m using a `NavHost` composable with ...
b

Bradleycorn

over 1 year ago
Hi all .. I’ve run into an odd issue with Compose Navigation. I’m using a
NavHost
composable with no special handling for transistions (it uses the default enter/exit and pop transistions). What I’m seeing, is that when I navigate in one case, the new destination slides in diagonally from the top left??? I’m not sure where that’s coming from or what is causing it. Here’s a video that shows the issue. You can see the diagonal animation at the 3 second mark. After that, there are a few button clicks that do additional navigations (using the exact same methods) that work correctly (they use the default fading between destinations). Has anyone else seen this weird “diagonal animation” when navigating?
Screen_recording_20240412_153844.webm
b
s
m
  • 3
  • 19
  • 379
Is there any way to remove default font padding from text? i don't find anything like `includefontpa...
s

Shoaib khalid

about 2 years ago
Is there any way to remove default font padding from text? i don't find anything like
includefontpadding=false
in compose multiplatform.
s
z
  • 2
  • 1
  • 379
Previous179180181Next

kotlinlang

A modern programming language that makes developers happier.

Powered by