Thread
#compose
    z
    Alex Gabor

    Alex Gabor

    1 year ago
    It uses
    JetsnackColors
    , while
    MaterialTheme
    needs
    Colors
    .
    You can define your own theming system. See https://developer.android.com/jetpack/compose/themes#custom-design
    z

    Zan Skamljic

    1 year ago
    Was there a specific reason this was done in JetSnack? are there things that could not be achieved by using MaterialTheme?
    Perhaps should the apps consider this?
    Or is it just used to specify a set of colors in addition to MaterialTheme, to specify colors for stuff that MaterialTheme doesn't have?
    Alex Gabor

    Alex Gabor

    1 year ago
    I didn’t check if it could have been achieved only with Material Theme, but in my opinion the sample shows that you are not limited to what Material Theme provides. So the way I see it is you can choose:1. Use MaterialTheme if it fits your needs 2. Use MaterialTheme so that you can use the material components, and add custom stuff like JetSnack does with colors. 3. Define a completely diferent Theme if Material Theme doesn’t fit you needs and/or you don’t want to use Material Components.