refactor of money utils with new money2 package

This commit is contained in:
Arseni
2026-03-13 03:17:29 +03:00
parent b4eb1437f6
commit 0091191d97
72 changed files with 453 additions and 982 deletions

View File

@@ -23,17 +23,12 @@ List<Widget> buildOperationCardItems(
if (items.isNotEmpty) {
items.add(const SizedBox(height: 16));
}
items.add(_DateHeader(
label: _dateLabel(context, operation.date, loc),
));
items.add(_DateHeader(label: _dateLabel(context, operation.date, loc)));
items.add(const SizedBox(height: 8));
currentKey = dateKey;
}
items.add(OperationCard(
operation: operation,
onTap: onTap,
));
items.add(OperationCard(operation: operation, onTap: onTap));
items.add(const SizedBox(height: 12));
}
@@ -66,9 +61,7 @@ class _DateHeader extends StatelessWidget {
final theme = Theme.of(context);
return Text(
label,
style: theme.textTheme.titleSmall?.copyWith(
fontWeight: FontWeight.w600,
),
style: theme.textTheme.titleSmall?.copyWith(fontWeight: FontWeight.w600),
);
}
}