refactor of money utils with new money2 package
This commit is contained in:
@@ -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user