https://kotlinlang.org logo
#compose
Title
# compose
m

Matej Drobnič

05/14/2019, 10:42 AM
2. How would focus system work with compose?
a

Andrey Kulikov

05/14/2019, 11:20 AM
I guess the correct answer for now is TBD
l

Leland Richardson [G]

05/14/2019, 4:00 PM
focus is difficult to get right in declarative frameworks because it is inherently non-local state, but still can’t be represented as global state without handling some corner cases improperly. we have thrown around a few api designs for this but are still unsure where we will end up. if you have any ideas, let us know 😉
m

Matej Drobnič

05/14/2019, 7:47 PM
isn't focus global though?
like, only one view has focus
oh right and all its parents
l

Leland Richardson [G]

05/14/2019, 7:48 PM
all of its parents, but also it gets more complicated when you consider multiple screens and multiple input devices
👍 2
5 Views