Android Style (Flutter)

Currently, some styles can't be configured through Dart codes on the Android side. But these styles can be configured through res/values/styles.xml, as shown below.

    <!--Configure the style for the shopping cta button-->
    <style name="FwShoppingCtaButtonStyle" parent="FwShoppingCtaButtonParentStyle">
        <item name="android:backgroundTint">@color/fw_shopping__add_to_cart_btn</item>
        <item name="android:textColor">@color/fw__gnt_white</item>
        <item name="android:textSize">@dimen/fw__font_size_16</item>
    </style>

    <!--Configure the style for the player cta button-->
    <style name="FwCtaButtonStyle" parent="FwCtaButtonViewParentStyle">
        <item name="android:backgroundTint">@color/fw_cta_bg_bluelake</item>
        <item name="android:textColor">@color/white</item>
        <item name="android:fontFamily">sans-serif</item>
    </style>

Last updated