romainguy
05/13/2019, 2:25 PMrivu.chakraborty
05/13/2019, 2:43 PMromainguy
05/13/2019, 2:45 PMromainguy
05/13/2019, 2:45 PMrivu.chakraborty
05/13/2019, 2:46 PMandroidx.compose.composer, I'll update the post right away, to replace the XML syntax with DSL @romainguythemishkun
05/13/2019, 2:57 PM-P plugin:androidx.compose.plugins.kotlin:syntax=FCS to get rid of this warningthemishkun
05/13/2019, 2:58 PMromainguy
05/13/2019, 2:59 PMromainguy
05/13/2019, 2:59 PMbloder
05/13/2019, 3:00 PMCraneWrapper, probably we should use when we define a style or something like that but I don't know why (didn't have time to check this part of source code)rivu.chakraborty
05/13/2019, 3:24 PMrivu.chakraborty
05/13/2019, 3:27 PMcompose expects a theme. I didn't mention it in the post as I'm not 100% sure about it yet, just wanted to give folks a heads-up that they need CraneWrapper and a theme to use any composable other than text.romainguy
05/13/2019, 3:54 PMCraneWrapper is a View that sets up Compose underneathromainguy
05/13/2019, 3:55 PMragunathjawahar
05/13/2019, 3:57 PMCraneWrapper uses the AndroidCraneView to host the compose tree. Besides that, it also grants access to the Context, Density, FocusManager and TextInputService implicitly to any of your composables (downstream) via their corresponding ambients.romainguy
05/13/2019, 3:57 PMromainguy
05/13/2019, 3:57 PMCrane will likely disappear soonromainguy
05/13/2019, 3:58 PMragunathjawahar
05/13/2019, 3:59 PMContext. You could use val context = +ambient(ContextAmbient) in one of your composables.Leland Richardson [G]
05/13/2019, 4:04 PMbloder
05/13/2019, 4:13 PMsetContent like a default wrapping of CraneWrapper?romainguy
05/13/2019, 4:15 PMbloder
05/13/2019, 4:17 PMromainguy
05/13/2019, 4:20 PMbloder
05/13/2019, 4:22 PMromainguy
05/13/2019, 4:28 PMthemishkun
05/13/2019, 5:01 PM