From ed44cf865279ce915d69e69513067a33e0498ee8 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Wed, 30 Jun 2021 10:38:59 +0200 Subject: [PATCH] FeatureTimeline: Fix late init Fixes APP-17H --- lib/screens/feature_timeline_screen.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/screens/feature_timeline_screen.dart b/lib/screens/feature_timeline_screen.dart index 4e413080..eb95e1c8 100644 --- a/lib/screens/feature_timeline_screen.dart +++ b/lib/screens/feature_timeline_screen.dart @@ -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(