Amirul Zin
08/07/2019, 6:11 AM@Qualifiers("sw600dp")
@Composable
fun someView(){
...
}
Or maybe just pass in the current qualifiers to the composable function?
If I got off the wrong starting point, please enlighten me. Thanks!jim
08/07/2019, 12:54 PMWithConstraints
widget), which gives you more flexibility to naturally scale the app as the window size increases. To get something mimetic of the existing system, it is also possible for us (or you) to implement a widget that takes in a map of configuration qualifiers to composable lambdas, and will compose the appropriate lambda that matches the current configuration. So there are some options here, but wherever we land, it will likely be more code-centric rather than based on file name/path/annotation.Adam Powell
08/07/2019, 1:05 PM@Composable
fun SomeView() = if (currentConfiguration.smallestScreenWidthDp >= 600) {
BigView()
} else {
SmallView()
}
and if we end up needing more than you can express in that sort of way, we'll invest further down the road