https://kotlinlang.org logo
Title
t

tylerwilson

04/13/2023, 12:36 PM
I am curious how complex it is to create an iOS specific MaterialTheme instance such that we can have a more native looking UI on each platform...
o

orangy

04/13/2023, 12:46 PM
iOS design system is not Material at all… It’s not just colors, but also other design elements, behaviors, animations, effects, etc.
t

tylerwilson

04/13/2023, 3:25 PM
I understand that. But the sample code in shared is like so:
@OptIn(ExperimentalResourceApi::class)
@Composable
fun App() {
    MaterialTheme {
Are you suggesting that this MaterialTheme is already adjusted to look more like iOS when on iOS?
o

orangy

04/13/2023, 3:29 PM
I don’t know for sure, but I guess it is not. Same theme as on Android, Desktop or any other platform, same components and their behaviors. With M3 you can tune more aspects, but it’s still Material.
a

Alejandro Rios

04/13/2023, 3:46 PM
@tylerwilson I don't think Material will be eventually adjusted to match iOS-style(called Cupertino), in Flutter the user has the possibility to use
OS specific
widgets, like this, my guess will be that maybe in the future we could have something similar in Compose
t

tylerwilson

04/13/2023, 3:48 PM
For now I would be happy to be able to do something like expect/actual CustomTheme which would let me adjust colors, type, shapes between the two, but use the same composables in common. thanks.
d

David Nedrow

04/27/2023, 7:29 PM
iOS design system is not Material at all
Yup. I wonder why people want to use Material Design for iOS. I suppose the same people use the Roboto font in their iOS apps. 😉