feat(news,calendar): improve corporate calendar filters and news sentiment dialogs
This commit is contained in:
@@ -36,12 +36,21 @@ class CalendarEventTile extends StatelessWidget {
|
||||
Color badgeColor = AppTheme.primaryEmerald;
|
||||
String typeLabel = 'Quartalszahlen';
|
||||
|
||||
if (type == 'ExDividend') {
|
||||
badgeColor = AppTheme.accentCyan;
|
||||
typeLabel = 'Ex-Dividende';
|
||||
} else if (type == 'Payout') {
|
||||
final tLower = type.toLowerCase();
|
||||
if (tLower.contains('ex') || tLower.contains('div') || tLower.contains('ausschütt')) {
|
||||
if (tLower.contains('pay') || tLower.contains('zahl')) {
|
||||
badgeColor = Colors.amber;
|
||||
typeLabel = 'Zahlungstag';
|
||||
} else {
|
||||
badgeColor = AppTheme.accentCyan;
|
||||
typeLabel = 'Ex-Dividende';
|
||||
}
|
||||
} else if (tLower.contains('pay') || tLower.contains('zahl') || tLower.contains('auszahl')) {
|
||||
badgeColor = Colors.amber;
|
||||
typeLabel = 'Zahlungstag';
|
||||
} else if (tLower.contains('split')) {
|
||||
badgeColor = Colors.purpleAccent;
|
||||
typeLabel = 'Aktiensplit';
|
||||
}
|
||||
|
||||
return GlassContainer(
|
||||
|
||||
Reference in New Issue
Block a user