FeatureTimeline: Fix late init

Fixes APP-17H
This commit is contained in:
Vishesh Handa
2021-06-30 10:38:59 +02:00
parent 754be05a4c
commit ed44cf8652

View File

@ -53,15 +53,13 @@ class FeatureTile extends StatelessWidget {
subtitle += ' - ' + feature.subtitle;
}
late Color color;
var theme = Theme.of(context);
var color = theme.accentColor;
if (feature.pro) {
if (theme.brightness == Brightness.light) {
color = theme.primaryColor;
}
} else {
color = theme.accentColor;
}
return _Tile(