Chapter 4 - Fooderlich theme

I have a problem when set theme for app.


I got an error “Invalid constant value”. Please help me!

Hi.

Did you try with final or nothing instead of Const ?

Widget text dépend of theme variable. So I think it’s not a Const.

I’m newbie… just an idea :grinning:

@thanhlong007 yes @olivaxa is right, you have to remove the const from both Text widgets. This is because the theme can potentially change.

1 Like

It’s work. Thanks @olivaxa @jomoka

1 Like