feat(app): календарь выплат сеткой по месяцам
Месячная сетка с дивидендами, купонами, амортизациями и погашениями по дням, выплаченными и ожидаемыми, с сводкой за месяц и списком выплат выбранного дня. Раскладка без прокрутки страницы: высота ячеек подстраивается под окно, на широком экране список справа. Прежний список остался вторым режимом.
This commit is contained in:
@@ -13,6 +13,16 @@ const incomeKindLabels = {
|
||||
|
||||
String incomeKindLabel(String kind) => incomeKindLabels[kind] ?? kind;
|
||||
|
||||
/// One glyph per kind, so a day cell on the calendar says what is paid without a word. The
|
||||
/// colour of the glyph is left to the caller: on the calendar it is the basis, not the kind.
|
||||
IconData incomeKindIcon(String kind) => switch (kind) {
|
||||
'dividend' => Icons.paid_outlined,
|
||||
'coupon' => Icons.receipt_long_outlined,
|
||||
'amortization' => Icons.trending_down,
|
||||
'repayment' => Icons.flag_outlined,
|
||||
_ => Icons.circle_outlined,
|
||||
};
|
||||
|
||||
const basisLabels = {
|
||||
'schedule': 'по графику',
|
||||
'announced': 'объявлено',
|
||||
|
||||
Reference in New Issue
Block a user