buildFinancialEntityFromBillData function
FinancialEntityCategoryView
buildFinancialEntityFromBillData(
- BillData model,
- int billDataIndex,
- BuildContext context
Implementation
FinancialEntityCategoryView buildFinancialEntityFromBillData(
BillData model,
int billDataIndex,
BuildContext context,
) {
final amount = usdWithSignFormat(context).format(model.primaryAmount);
return FinancialEntityCategoryView(
suffix: const Icon(Icons.chevron_right, color: Colors.grey),
title: model.name,
subtitle: model.dueDate,
semanticsLabel: "{billName} bill due {date} for {amount}.",
// semanticsLabel: GalleryLocalizations.of(context).rallyBillAmount(
// model.name,
// model.dueDate,
// amount,
// ),
indicatorColor: RallyColors.billColor(billDataIndex),
indicatorFraction: 1,
amount: amount,
);
}