style(app): остальные экраны под новый визуальный язык и форматирование
Доходы, ребалансировка, налоги, импорт, цели, здоровье данных, правила, транзакции, категории, cashflow, pending: новые виджеты и токены темы, dart format. Тесты подстроены под новые модели.
This commit is contained in:
@@ -26,7 +26,8 @@ const basisLabels = {
|
||||
const basisDescriptions = {
|
||||
'schedule': 'Арифметика по опубликованному графику выплат эмитента.',
|
||||
'announced': 'Объявленный эмитентом факт: размер и дата известны.',
|
||||
'history': 'Экстраполяция по выплатам за последние 24 мес — может ошибаться '
|
||||
'history':
|
||||
'Экстраполяция по выплатам за последние 24 мес — может ошибаться '
|
||||
'на любую величину, в том числе выплаты может не быть вовсе.',
|
||||
'paid': 'Уже получено.',
|
||||
};
|
||||
@@ -38,12 +39,12 @@ String basisDescription(String basis) => basisDescriptions[basis] ?? basis;
|
||||
/// Fixed slot per basis — never cycled, so the same basis is the same colour on the
|
||||
/// calendar, in the forecast legend and in the stacked bars.
|
||||
Color basisColor(String basis) => switch (basis) {
|
||||
'schedule' => ChartColors.slot1Blue,
|
||||
'announced' => ChartColors.slot3Aqua,
|
||||
'history' => ChartColors.slot4Yellow,
|
||||
'paid' => ChartColors.slot5Magenta,
|
||||
_ => ChartColors.slot2Orange,
|
||||
};
|
||||
'schedule' => ChartColors.slot1Blue,
|
||||
'announced' => ChartColors.slot3Aqua,
|
||||
'history' => ChartColors.slot4Yellow,
|
||||
'paid' => ChartColors.slot5Magenta,
|
||||
_ => ChartColors.slot2Orange,
|
||||
};
|
||||
|
||||
/// The basis chip that has to sit on every calendar and forecast row.
|
||||
class BasisChip extends StatelessWidget {
|
||||
@@ -58,7 +59,10 @@ class BasisChip extends StatelessWidget {
|
||||
return Tooltip(
|
||||
message: basisDescription(basis),
|
||||
child: Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: dense ? 6 : 10, vertical: dense ? 1 : 4),
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal: dense ? 6 : 10,
|
||||
vertical: dense ? 1 : 4,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: color.withValues(alpha: 0.14),
|
||||
border: Border.all(color: color.withValues(alpha: 0.5)),
|
||||
|
||||
Reference in New Issue
Block a user