mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-02 04:47:01 +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;
|
||||
}
|
||||
|
||||
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(
|
||||
|
Reference in New Issue
Block a user