https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
compose
  • g

    Gerardo Ernesto Rodriguez Navar

    02/08/2022, 1:19 PM
    Is it ok to use
    @OptIn
    annotations in a production app?
    n
    g
    z
    • 4
    • 9
  • d

    dimsuz

    02/08/2022, 1:54 PM
    I'm curious why is
    LocalConfiguration.current
    present in the Compose's
    resources()
    . Does it have the effect of recomposing when
    Configuration
    changes?
    @Composable
    @ReadOnlyComposable
    private fun resources(): Resources {
        LocalConfiguration.current
        return LocalContext.current.resources
    }
    s
    a
    +2
    • 5
    • 8
  • m

    Mehdi Haghgoo

    02/08/2022, 3:41 PM
    I have put MainScreen inside S1FoundationTheme, but the layout editor shows MaterialTheme in the same level as MainScreen. What does this mean? Certainly, MaterialTheme is not a child of S1FoundationTheme, rather maybe the reverse.
    a
    c
    • 3
    • 15
  • m

    mattinger

    02/08/2022, 5:43 PM
    Does anyone know if there’s a good way to measure the number of rendered lines of text in a Text element? Our UX is asking us to change the alignment of an icon that sits to the left of the text in a row (nothing that would change the text itself to resize or reposition) based on how many lines of text are rendered. In the XML world, you could use things like FontMetrics and what not to do this. Not sure about compose.
    a
    • 2
    • 3
  • e

    electrolobzik

    02/08/2022, 5:52 PM
    Hey guys, is it possible to use Compose for Web and have Ktor based backend on the same Netty web server instance? If I follow
    <https://play.kotlinlang.org/hands-on/Full%20Stack%20Web%20App%20with%20Kotlin%20Multiplatform>
    I get this error:
    The Compose Compiler requires the Compose Runtime to be on the class path, but none could be found
    while compiling jvm target. I have compose dependencies specified only for js target, but it looks like the Compose Plugin is used for jvm and it causes the error. How could I fix that? Are there any sample projects with Compose and Ktor backend working together?
    r
    • 2
    • 10
  • j

    Joseph Hawkes-Cates

    02/08/2022, 5:58 PM
    I’m seeing a weird issue that I’m thinking might be a bug. I have some logic to determine the Window Size Class that I took from one of the Android Developer Channel YouTube videos. I’m seeing that the first couple times I change the orientation of my device it seems to not be updating
    LocalConfiguraiton.current
    . If I remove the “orientation” entry from the “android:config” changes field in my manifest, then it works every time, but with that in there, it will not update the first couple times, then it’ll work after that. Code in 🧵
    r
    • 2
    • 12
  • z

    Zhelyazko Atanasov

    02/08/2022, 6:11 PM
    We are slowly migrating our big app to Compose and something that we stumbled upon is testing
    LazyColumn
    . We have many tests where we show a list of items, scroll to a particular index and perform actions on the item at that index - e.g. click it. But I can't find a way to do that using only an item index. There's a method performScrollToIndex(index) that does the scrolling, but after that it's not possible to get the semantics node at that index. If you do something like:
    val index = 1000
    onNodeWithTag(COUNTRY_LIST).performScrollToIndex(index)
    onNodeWithTag(COUNTRY_LIST).onChildAt(index).performClick()
    it doesn't work, because the LazyColumn (it has a
    Modifier.testTag(COUNTRY_LIST)
    ) only has "_<number_of_visible_items> + 2"_ number of children (nodes) at a given time. Ideally I'd like to do something like
    onNodeWithTag(COUNTRY_LIST).performScrollToIndex(index).performClick()
    , but
    performScrollToIndex
    returns the semantics node on which the method was called 😞 If you have a test tag, text or anything else that can be used to match the item at
    index
    , then you can perform actions/assertions on it, but do you know of a way to do that having only an index/position?
    m
    z
    j
    • 4
    • 7
  • l

    Luke

    02/08/2022, 6:38 PM
    Are there any plans on supporting hyphenation in Compose? We have `TextView`s with
    android:hyphenationFrequency
    set on them, and we want to migrate to Compose, but we can't find an equivalent as of version 1.0.5
    s
    l
    • 3
    • 8
  • n

    Nacho Ruiz Martin

    02/08/2022, 6:54 PM
    Hello! 👋 What’s the approach to animate the enter and exit of composables added in a
    forEach
    ? Simplified version of the parent Composable looks like this:
    val items: MutableList<...> = ...
    Column() {
        items.forEach { item ->
            ChildComposable()
        }
    }
    AnimatedVisibility
    applied in parent doesn’t work because the parent is always there. Applying it to the children works on enter but not en “exit” because when the item disappears from the list there’s no longer a child Composable to “exit”. Thanks! 🙇
    a
    c
    +2
    • 5
    • 8
  • c

    Chris Fillmore

    02/08/2022, 7:40 PM
    Anyone aware of a bug where live-editing literals in Android Studio causes Canvas drawing to draw incorrectly?
    c
    • 2
    • 7
  • r

    Rajashekar

    02/08/2022, 8:06 PM
    I'm trying to build this with BottomNavigation. Anyone has an idea to achieve this background shape of bottom navigation and only customize the middle icon size?
    d
    • 2
    • 1
  • b

    brabo-hi

    02/08/2022, 8:40 PM
    Hi all, i have a legacy app that has 3 screens: custom splashcreen, Login, Main. The starting point is the splashscreen where i make a network request to check credentials stored locally. If they are valid move to Main else Move to Login. I would like to transition to default splashscreen api and compose navigation. What should be my start page? Login or Main? Where should i do the credential check (splashscreen? Login ? Main?)
    • 1
    • 2
  • r

    Robert Menke

    02/09/2022, 4:35 AM
    I see this question here regarding text gradients https://stackoverflow.com/a/64342047/4313362. Any plans to include support for text/foreground gradients natively in the framework?
    c
    s
    • 3
    • 3
  • z

    Zoltan Demant

    02/09/2022, 4:59 AM
    When using
    rememberDraggableState
    and vibrating after a certain drag distance, I often see the vibration not staying in sync with the drag events. Is this a bug? Code in thread 🧵
    a
    • 2
    • 5
  • j

    james

    02/09/2022, 6:31 AM
    anyone ever seen a bug with
    AnimatedVisibility
    where, when wrapping a composable with it, the children of that composable are now backwards? what I mean is, I have this var
    isExpanded
    and if I simply have two children inside that, ComposableA and ComposableB, it works as expected.. but now I want to animate, and so I replace my check for
    if isExpanded
    with an
    AnimatedVisibility
    composable, and now when my children are drawn on screen, they are drawn like ComposableB then ComposableA is this a bug or am I missing something in how to use it?
    z
    d
    • 3
    • 2
  • g

    galex

    02/09/2022, 7:07 AM
    What is the equivalent to AsyncLayoutInflater for composables? Knowing the screen size I'd like to render a composable so I can know the final size an image inside the composable will have to prefetch it at the optimal size.
    a
    • 2
    • 2
  • d

    darkmoon_uk

    02/09/2022, 10:28 AM
    💡 Big idea time: We're already seeing the grand success of Compose for Android and Desktop, at making UI development a pleasurable (and portable) experience again. Soon, we're likely to see :compose-multiplatform: Compose Multiplatform impact iOS and Web development more fully too. It's also been demonstrated that Compose runtime can be applied to other diverse use cases e.g. terminal applications. So; thinking about near-future trends and wondering how the Kotlin/Compose Ecosystem can establish itself even further, how about emitting 3D scenes for ✨ m*etaverse*✨applications? I would love to be able to build 3D VR/AR clients to my full-stack applications, as 'yet another KMP target', using familiar Compose-style code to declare and manipulate 3D world objects. I think in a few years this is going to be an important space for tooling; with requirements outside of what Unity etc. serve today: The needs of VR/AR productivity Apps aren't going to be quite the same as for games. In early practical terms; could we take the 3D scenegraph API of, say, the Godot engine, which has both Kotlin bindings and VR/AR capabilities, and use the Compose runtime to continually (re)compose a scene graph for display. For a metaverse UI toolkit you'd probably want to support 2D interface panels floating in space as well; so to be able to in-line regular 'material Compose' elements with this graph would be ideal too. I can't be the first to have thought of this - does anyone know if such efforts are in the works? Or anyone keen to have a dabble at a PoC?
    👀 11
    x
    m
    • 3
    • 6
  • c

    Chris Fillmore

    02/09/2022, 12:14 PM
    Is it possible to animate the dismissal of a modal bottom sheet when using
    popBackStack()
    ? (or if the user clicks the back button, or clicks on something that calls
    navigate()
    ) Currently the animation only plays if the user clicks on the scrim or drags the sheet down.
    j
    • 2
    • 4
  • e

    elye

    02/09/2022, 12:51 PM
    In https://developer.android.com/jetpack/compose/animation, I find all the guide per the provided table diagram (as shown below, linking to each of the topic provided by the doc). But I cannot find two of them 1. Animation 2. AnimationState & animate Did I miss anything? Just for completeness, I can find the others except the two. • AnimatedVisibility (experimental) https://developer.android.com/jetpack/compose/animation#animatedvisibility • AnimatedContent (experimental) https://developer.android.com/jetpack/compose/animation#animatedcontent • animateContentSize https://developer.android.com/jetpack/compose/animation#animateContentSize • Crossfade https://developer.android.com/jetpack/compose/animation#crossfade Low-level Animation APIs • animate*AsState https://developer.android.com/jetpack/compose/animation#animate-as-state • Animatable https://developer.android.com/jetpack/compose/animation#animatable • updateTransition https://developer.android.com/jetpack/compose/animation#updateTransition • rememberInfiniteTransition https://developer.android.com/jetpack/compose/animation#rememberinfinitetransition Missing (in Pink box shown below) • Animation (where’s the doc?) • AnimationState & animate (where’s the doc?)
    d
    • 2
    • 4
  • m

    mattinger

    02/09/2022, 1:54 PM
    Does anyone know if there’s a more general equivalent of the snackbar for arbitrary banner content? Aside from the issue of it not being very flexible (even through SnackbarData is an interface, there’s no way to provide a different implementation to give to the SnackbarHost). There’s also the positioning on screen as well, which i need to be at the top and not the bottom.
    a
    • 2
    • 3
  • l

    Luis Daivid

    02/09/2022, 2:19 PM
    Are there any good open source apps made with compose? I want to study in a way that analyzes exemplary apps such as theme management, color management, navigation management, etc. Please recommend!
    k
    n
    • 3
    • 2
  • s

    Sepideh Vatankhah

    02/09/2022, 2:40 PM
    #compose Hey guys, if we have a compose component which gets two or more modifier, how should we handle it ? I mean the naming of modifiers while lint complains changing the name of modifier parameter
    s
    c
    • 3
    • 7
  • y

    Yev Kanivets

    02/09/2022, 3:44 PM
    Hey! How should we approach time-dependable UI with Jetpack Compose? Let's say I have a message in chat and it has statuses (sending, sent, delivered). When it's delivered we should hide the message status in 5 seconds from its delivery time. Can I use
    System.currentTimeMillis()
    in if inside composable directly (I think it won't cause recomposition)? Or should I pass it as part of the state and change with old good timer? Or are there better approaches?
    h
    c
    • 3
    • 2
  • k

    K Merle

    02/09/2022, 4:57 PM
    Is it possible to have multiple items per screen with Accompanist pager library? I don't want each item to be full width.
    c
    t
    • 3
    • 2
  • v

    Vahalaru

    02/09/2022, 5:40 PM
    Whoa wait a minute... do you not need to make a separate function to preview a composable? Current instruction day to make a composable then another composable annotated with preview. Can you just add preview to a composable?
    a
    c
    • 3
    • 4
  • g

    Gerardo Ernesto Rodriguez Navar

    02/09/2022, 6:16 PM
    When using compose + espresso in testing I’m getting this error
    • 1
    • 2
  • s

    Shakil Karim

    02/09/2022, 7:16 PM
    movableContentOf 😍 Can we use this API with Navigation Compose for Transition Animation ?
    i
    • 2
    • 1
  • t

    Tolriq

    02/09/2022, 7:28 PM
    Since https://issuetracker.google.com/issues/174162090 is not closed does this means there's still more to be added to support Downloadable fonts or it's ready and I can try to figure out how :)
    s
    • 2
    • 1
  • c

    Colton Idle

    02/09/2022, 7:38 PM
    https://android-developers.googleblog.com/2022/02/jetpack-compose-11-now-stable.html
    👏 2
    🎉 11
    🔥 9
    • 1
    • 2
  • c

    Colton Idle

    02/09/2022, 8:05 PM
    Version 1.2.0-alpha03 released! Lots of really interesting changes and welcome bug fixes!!! Here are interesting bits from releases notes and commit messages (in my opinion) • TextFields will now be kept above the keyboard when they are focused and the keyboard is shown, when the soft input mode is 
    ADJUST_RESIZE
    . (I8eaeb, b/190539358, b/192043120) • Bunch of more commits regarding input field focus although I think the main bug on issuetracker is not technically fixed yet • Window inset modifiers?! Not sure exactly what this means yet, but I do wonder if this makes accompanist-insets unnecessary? • Debounce restart input commands in TextInputServiceAndroid (I believe this fixes the "flash" on the keyboard when moving from one input field to another) • "Support content types in Lazy lists" ("Providing such information helps item composition reusing logic to make it more efficiently and only reuse the content between the items of similar type.") • Oh. Yep to the above ^ "The soft keyboard input type no longer flickers when changing focus between text fields. (I1bf50, b/187746439)" • Lots of things related to text field magnification? (I gotta admit, I'm not sure exactly what this is but theres a bunch of commits about it) /shruggie • New scrollable chip group sample added • New material 3 components (DropdownMenu, DropdownMenuItem, Card, OutlinedCard, ElevatedCard) • Added 
    movableContentOf
     which converts a composable lambda into a lambda that moves it state, and corresponding nodes, to any new location it is called. When the previous call leaves the composition the state is temporarily preserved and if a new call to the lambda enters the composition then the state, and associated nodes, are moved to the location of the new call. If no new call is added the state is removed permanently and remember observers are notified. • Added a tracing API to composition to enable tools to provide more detailed tracing of composable functions. The compiler now generates calls to the tracing API which include source information. (Ib0eb5) This apparently adds required/optional (not sure) proguard rules?
    -assumenosideeffects public class <http://androidx.compose.runtime.Com|androidx.compose.runtime.Com>...
    • Add 
    InternalComposeScope
     which gives tools the ability to identify a composable during recompositions. (I07a3f) • Fix bug when rememberSaveable with input is restored in the wrong order • A bunch of changes regarding Fonts • A bunch of things regarding MPP and Robolectric • Also, I didn't see this in release notes, but it seems like it was fixed according to issue tracker "Add material decoration box for TextField and OutlinedTextField/ Provide a way to remove the extra horizontal padding from TextField It allows additionally to what is customisable in text fields already to customise paddings (incl. for dense text field support), border or indicator line."
    👍 15
    ❤️ 15
    👍🏼 1
    z
    b
    +2
    • 5
    • 10
Powered by Linen
Title
c

Colton Idle

02/09/2022, 8:05 PM
Version 1.2.0-alpha03 released! Lots of really interesting changes and welcome bug fixes!!! Here are interesting bits from releases notes and commit messages (in my opinion) • TextFields will now be kept above the keyboard when they are focused and the keyboard is shown, when the soft input mode is 
ADJUST_RESIZE
. (I8eaeb, b/190539358, b/192043120) • Bunch of more commits regarding input field focus although I think the main bug on issuetracker is not technically fixed yet • Window inset modifiers?! Not sure exactly what this means yet, but I do wonder if this makes accompanist-insets unnecessary? • Debounce restart input commands in TextInputServiceAndroid (I believe this fixes the "flash" on the keyboard when moving from one input field to another) • "Support content types in Lazy lists" ("Providing such information helps item composition reusing logic to make it more efficiently and only reuse the content between the items of similar type.") • Oh. Yep to the above ^ "The soft keyboard input type no longer flickers when changing focus between text fields. (I1bf50, b/187746439)" • Lots of things related to text field magnification? (I gotta admit, I'm not sure exactly what this is but theres a bunch of commits about it) /shruggie • New scrollable chip group sample added • New material 3 components (DropdownMenu, DropdownMenuItem, Card, OutlinedCard, ElevatedCard) • Added 
movableContentOf
 which converts a composable lambda into a lambda that moves it state, and corresponding nodes, to any new location it is called. When the previous call leaves the composition the state is temporarily preserved and if a new call to the lambda enters the composition then the state, and associated nodes, are moved to the location of the new call. If no new call is added the state is removed permanently and remember observers are notified. • Added a tracing API to composition to enable tools to provide more detailed tracing of composable functions. The compiler now generates calls to the tracing API which include source information. (Ib0eb5) This apparently adds required/optional (not sure) proguard rules?
-assumenosideeffects public class <http://androidx.compose.runtime.Com|androidx.compose.runtime.Com>...
• Add 
InternalComposeScope
 which gives tools the ability to identify a composable during recompositions. (I07a3f) • Fix bug when rememberSaveable with input is restored in the wrong order • A bunch of changes regarding Fonts • A bunch of things regarding MPP and Robolectric • Also, I didn't see this in release notes, but it seems like it was fixed according to issue tracker "Add material decoration box for TextField and OutlinedTextField/ Provide a way to remove the extra horizontal padding from TextField It allows additionally to what is customisable in text fields already to customise paddings (incl. for dense text field support), border or indicator line."
👍 15
❤️ 15
👍🏼 1
z

Zach Klippenstein (he/him) [MOD]

02/10/2022, 12:07 AM
That should have said
ADJUST_PAN
, my bad. Working on fixing the release notes now. Sorry.
c

Colton Idle

02/10/2022, 12:22 AM
Accompanist insets docs seem to suggest that adjustResize is needed. Any issue there?
b

Ben Trengrove [G]

02/10/2022, 5:27 AM
Yes, window insets will take over from accompanist insets
z

Zach Klippenstein (he/him) [MOD]

02/10/2022, 5:31 AM
Yea you probably never actually want to use adjust_pan lol. But if you do for some reason, it should be inconvenient in the correct way 😅
j

jasu

02/10/2022, 7:38 AM
My note text is still going below keyboard, using the latest compose ui version(alpha03), tried adjusting pan and resize but no luck. any idea? @Zach Klippenstein (he/him) [MOD] @Colton Idle I’ve a below hierarchy Column -Title TextFiled -Note TextFiled
z

Zach Klippenstein (he/him) [MOD]

02/11/2022, 8:54 AM
Can you share your code?
🙌 1
j

jasu

02/11/2022, 1:17 PM
Yeh @Zach Klippenstein (he/him) [MOD] here it is
note text is going below the keyboard. expected behaviour: 1. If you keep typing, last line should always on top of keyboard 2. If i paste some long text and keyboard is open again the last line should be above the keyboard actual behaviour: In both cases text goes below the keyboard
Note edit screen.kt
z

Zach Klippenstein (he/him) [MOD]

02/11/2022, 9:33 PM
Please file a bug, and if you could also attach a screen recording that would be ideal
🙌 2
s

Siyamed

02/14/2022, 5:14 AM
I love what @Colton Idle does 🙂
👍 2
➕ 1
View count: 3