Adjust font sizes in list tiles

This commit is contained in:
Hillel Coren 2022-05-25 13:03:48 +03:00
parent 8f7b1cb42d
commit ac91f86850
25 changed files with 48 additions and 48 deletions

View File

@ -175,13 +175,13 @@ class ClientListItem extends StatelessWidget {
child: Text( child: Text(
client.displayName + client.displayName +
(client.documents.isNotEmpty ? ' 📎' : ''), (client.documents.isNotEmpty ? ' 📎' : ''),
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text( Text(
formatNumber(client.balance, context, formatNumber(client.balance, context,
clientId: client.id), clientId: client.id),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -83,11 +83,11 @@ class CompanyGatewayListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
companyGateway.listDisplayName, companyGateway.listDisplayName,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text(formatNumber(companyGateway.listDisplayAmount, context), Text(formatNumber(companyGateway.listDisplayAmount, context),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -190,7 +190,7 @@ class CreditListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
client.displayName, client.displayName,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
), ),
@ -202,7 +202,7 @@ class CreditListItem extends StatelessWidget {
: credit.amount, : credit.amount,
context, context,
clientId: credit.clientId), clientId: credit.clientId),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -74,11 +74,11 @@ class DesignListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
design.name, design.name,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text(formatNumber(design.listDisplayAmount, context), Text(formatNumber(design.listDisplayAmount, context),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -79,11 +79,11 @@ class DocumentListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
document.name, document.name,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text(formatNumber(document.listDisplayAmount, context), Text(formatNumber(document.listDisplayAmount, context),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -216,14 +216,14 @@ class ExpenseListItem extends StatelessWidget {
? expense.number ? expense.number
: expense.publicNotes) + : expense.publicNotes) +
(expense.documents.isNotEmpty ? ' 📎' : ''), (expense.documents.isNotEmpty ? ' 📎' : ''),
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
maxLines: 1, maxLines: 1,
), ),
), ),
Text( Text(
formatNumber(expense.amount, context, formatNumber(expense.amount, context,
currencyId: expense.currencyId), currencyId: expense.currencyId),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -79,11 +79,11 @@ class ExpenseCategoryListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
expenseCategory.name, expenseCategory.name,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text(formatNumber(expenseCategory.listDisplayAmount, context), Text(formatNumber(expenseCategory.listDisplayAmount, context),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -75,11 +75,11 @@ class GroupListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
group.name, group.name,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text(formatNumber(group.listDisplayAmount, context), Text(formatNumber(group.listDisplayAmount, context),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -207,7 +207,7 @@ class InvoiceListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
client.displayName, client.displayName,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
), ),
@ -219,7 +219,7 @@ class InvoiceListItem extends StatelessWidget {
: invoice.amount, : invoice.amount,
context, context,
clientId: invoice.clientId), clientId: invoice.clientId),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -184,13 +184,13 @@ class PaymentListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
client.displayName, client.displayName,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text( Text(
formatNumber(payment.amount, context, formatNumber(payment.amount, context,
clientId: payment.clientId), clientId: payment.clientId),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -83,11 +83,11 @@ class PaymentTermListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
paymentTerm.name, paymentTerm.name,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text(formatNumber(paymentTerm.listDisplayAmount, context), Text(formatNumber(paymentTerm.listDisplayAmount, context),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -175,13 +175,13 @@ class ProductListItem extends StatelessWidget {
child: Text( child: Text(
product.productKey + product.productKey +
(product.documents.isNotEmpty ? ' 📎' : ''), (product.documents.isNotEmpty ? ' 📎' : ''),
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text( Text(
formatNumber(product.price, context, formatNumber(product.price, context,
roundToPrecision: false), roundToPrecision: false),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -187,14 +187,14 @@ class ProjectListItem extends StatelessWidget {
child: Text( child: Text(
project.name + project.name +
(project.documents.isNotEmpty ? ' 📎' : ''), (project.documents.isNotEmpty ? ' 📎' : ''),
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text( Text(
formatDuration( formatDuration(
Duration(hours: project.budgetedHours.toInt()), Duration(hours: project.budgetedHours.toInt()),
showSeconds: false), showSeconds: false),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -189,7 +189,7 @@ class QuoteListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
client.displayName, client.displayName,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
), ),
@ -197,7 +197,7 @@ class QuoteListItem extends StatelessWidget {
Text( Text(
formatNumber(quote.amount, context, formatNumber(quote.amount, context,
clientId: quote.clientId), clientId: quote.clientId),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -217,14 +217,14 @@ class RecurringExpenseListItem extends StatelessWidget {
? expense.number ? expense.number
: expense.publicNotes) + : expense.publicNotes) +
(expense.documents.isNotEmpty ? ' 📎' : ''), (expense.documents.isNotEmpty ? ' 📎' : ''),
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
maxLines: 1, maxLines: 1,
), ),
), ),
Text( Text(
formatNumber(expense.convertedAmount, context, formatNumber(expense.convertedAmount, context,
currencyId: expense.currencyId), currencyId: expense.currencyId),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -197,7 +197,7 @@ class RecurringInvoiceListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
client.displayName, client.displayName,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
), ),
@ -205,7 +205,7 @@ class RecurringInvoiceListItem extends StatelessWidget {
Text( Text(
formatNumber(invoice.amount, context, formatNumber(invoice.amount, context,
clientId: invoice.clientId), clientId: invoice.clientId),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -79,11 +79,11 @@ class SubscriptionListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
subscription.name, subscription.name,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text(formatNumber(subscription.price, context), Text(formatNumber(subscription.price, context),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -232,7 +232,7 @@ class TaskListItem extends StatelessWidget {
(task.documents.isNotEmpty ? ' 📎' : ''), (task.documents.isNotEmpty ? ' 📎' : ''),
maxLines: 1, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
duration, duration,

View File

@ -79,11 +79,11 @@ class TaskStatusListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
taskStatus.name, taskStatus.name,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text(formatNumber(taskStatus.listDisplayAmount, context), Text(formatNumber(taskStatus.listDisplayAmount, context),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -75,11 +75,11 @@ class TaxRateListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
'${taxRate.name}${formatNumber(taxRate.rate, context, formatNumberType: FormatNumberType.percent)}', '${taxRate.name}${formatNumber(taxRate.rate, context, formatNumberType: FormatNumberType.percent)}',
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text(formatNumber(taxRate.listDisplayAmount, context), Text(formatNumber(taxRate.listDisplayAmount, context),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -73,7 +73,7 @@ class TokenListItem extends StatelessWidget {
: null, : null,
title: Text( title: Text(
token.name, token.name,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
subtitle: Column( subtitle: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,

View File

@ -74,11 +74,11 @@ class UserListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
user.listDisplayName, user.listDisplayName,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text(formatNumber(user.listDisplayAmount, context), Text(formatNumber(user.listDisplayAmount, context),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -181,14 +181,14 @@ class VendorListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
vendor.name + (documents.isNotEmpty ? ' 📎' : ''), vendor.name + (documents.isNotEmpty ? ' 📎' : ''),
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
/* /*
Text( Text(
formatNumber(vendor.balance, context, formatNumber(vendor.balance, context,
vendorId: vendor.id), vendorId: vendor.id),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
*/ */
], ],
), ),

View File

@ -80,11 +80,11 @@ class WebhookListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
webhook.targetUrl, webhook.targetUrl,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text(formatNumber(webhook.listDisplayAmount, context), Text(formatNumber(webhook.listDisplayAmount, context),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),

View File

@ -74,11 +74,11 @@ class StubListItem extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
stub.name, stub.name,
style: Theme.of(context).textTheme.headline6, style: Theme.of(context).textTheme.subtitle1,
), ),
), ),
Text(formatNumber(stub.listDisplayAmount, context), Text(formatNumber(stub.listDisplayAmount, context),
style: Theme.of(context).textTheme.headline6), style: Theme.of(context).textTheme.subtitle1),
], ],
), ),
), ),