Ashutosh Mulik

Results 2 comments of Ashutosh Mulik

It's because you defined kPrimaryGradient as constant. Generally, in order to have a widget that is compile-time constant, all of its properties should also be compile-time constants.

Upgrade your kotlin version to the latest. Go to your build.gradle file in the root of your Android directory. As of the time of typing this, the latest is 1.6.10,...