mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-03 23:00:04 +08:00
FeatureTimeline: Fix late init
Fixes APP-17H
This commit is contained in:
@ -53,15 +53,13 @@ class FeatureTile extends StatelessWidget {
|
|||||||
subtitle += ' - ' + feature.subtitle;
|
subtitle += ' - ' + feature.subtitle;
|
||||||
}
|
}
|
||||||
|
|
||||||
late Color color;
|
|
||||||
var theme = Theme.of(context);
|
var theme = Theme.of(context);
|
||||||
|
var color = theme.accentColor;
|
||||||
|
|
||||||
if (feature.pro) {
|
if (feature.pro) {
|
||||||
if (theme.brightness == Brightness.light) {
|
if (theme.brightness == Brightness.light) {
|
||||||
color = theme.primaryColor;
|
color = theme.primaryColor;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
color = theme.accentColor;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return _Tile(
|
return _Tile(
|
||||||
|
Reference in New Issue
Block a user