itnoles
06/03/2019, 7:22 PMSlackbot
06/03/2019, 7:30 PMFudge
06/03/2019, 9:03 PMFudge
06/03/2019, 9:35 PMText("Hello World")
.padding()
Seems nicer than
Padding {
Text("Hello World")
}
I have to be honest.Chainchelliah
06/04/2019, 7:32 AMSlackbot
06/04/2019, 11:49 AMFudge
06/04/2019, 11:51 AMaiidziis
06/04/2019, 11:52 AMThen we'll explore Jetpack Compose, a Kotlin native UI toolkit for Android. You'll learn how it fits together with your existing architecture to build reusable UI components. Built with a goal of integrating with your existing code we'll take a look at how to combine Jetpack Compose with Android views. We'll also cover some best practices for how to use Jetpack Compose!
So I guess by December there will be alphaish release of Jetpack Compose?Robert Menke
06/05/2019, 1:24 PMLeland Richardson [G]
06/05/2019, 3:36 PMelizarov
06/05/2019, 3:41 PMfun foo() = logged { transactional { ... } } // (1)
Padding(color=my) { OtherWrapper { Component() } } // (2)
It would be preferable to be able to write:
fun foo() = logged <compose> transactional { ... } // (1)
Padding(color=my) <compose> OtherWrapper <compose> Component() // (2)
The trick is what <compose>
sequence of characters is. It is extremely hard to find a syntactic form that is readable and understandable, looks nicely, and is not ambiguous with all the current and potential future extensions of Kotlin language. Ideas are welcome, use a thread please 🧵sergio250
06/05/2019, 3:42 PMstruct ContentView: View {
var body: some View {
Spacer().padding()
}
}
Is transformed into
▿ _ModifiedContent<Spacer, _PaddingLayout>
▿ content: Spacer
- minLength: Optional<CGFloat>.none
▿ modifier: _PaddingLayout
▿ edges: Set
- rawValue: 15
- insets: Optional<EdgeInsets>.none
romainguy
06/05/2019, 5:05 PMelizarov
06/05/2019, 5:23 PMTudor Luca
06/05/2019, 5:42 PMFudge
06/05/2019, 10:00 PMtapAction
modifier in SwiftUI.
Text("hello")
.tapAction { println("tapped") }
Over
Clickable(onClick = { println("tapped") }){
Text("hello")
}
You get { println("tapped") }
over
(onClick = { println("tapped") })
Fudge
06/05/2019, 10:07 PMText("/(capacity) people")
is translatableMihai Hrincescu
06/09/2019, 12:46 PMAdam Powell
06/09/2019, 2:47 PMraulraja
06/09/2019, 8:42 PMorg.jetbrains.kotlin.extensions.TypeResolutionInterceptorExtension
in its component registration. I looked in Github and there are no such extensions in the Kotlin Compiler master branch. Where are those extensions coming from? Is there a list of available extensions available? Thanks.raulraja
06/09/2019, 8:56 PMsupport
repo or the subset of jetpack compose which is the one I’m interested in. Any help is appreciated, thanks.Blundell
06/10/2019, 7:58 AMVladimir Ivanov
06/11/2019, 10:04 AMVladimir Ivanov
06/11/2019, 10:05 AMvoddan
06/11/2019, 10:44 AMVladimir Ivanov
06/11/2019, 12:14 PMVladimir Ivanov
06/11/2019, 12:17 PMVladimir Ivanov
06/11/2019, 12:22 PMVladimir Ivanov
06/11/2019, 12:30 PMursus
06/13/2019, 5:18 AM