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(
client.displayName +
(client.documents.isNotEmpty ? ' 📎' : ''),
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
Text(
formatNumber(client.balance, context,
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(
child: Text(
companyGateway.listDisplayName,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
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(
child: Text(
client.displayName,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
overflow: TextOverflow.ellipsis,
),
),
@ -202,7 +202,7 @@ class CreditListItem extends StatelessWidget {
: credit.amount,
context,
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(
child: Text(
design.name,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
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(
child: Text(
document.name,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
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.publicNotes) +
(expense.documents.isNotEmpty ? ' 📎' : ''),
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
maxLines: 1,
),
),
Text(
formatNumber(expense.amount, context,
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(
child: Text(
expenseCategory.name,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
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(
child: Text(
group.name,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
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(
child: Text(
client.displayName,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
overflow: TextOverflow.ellipsis,
),
),
@ -219,7 +219,7 @@ class InvoiceListItem extends StatelessWidget {
: invoice.amount,
context,
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(
child: Text(
client.displayName,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
Text(
formatNumber(payment.amount, context,
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(
child: Text(
paymentTerm.name,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
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(
product.productKey +
(product.documents.isNotEmpty ? ' 📎' : ''),
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
Text(
formatNumber(product.price, context,
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(
project.name +
(project.documents.isNotEmpty ? ' 📎' : ''),
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
Text(
formatDuration(
Duration(hours: project.budgetedHours.toInt()),
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(
child: Text(
client.displayName,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
overflow: TextOverflow.ellipsis,
),
),
@ -197,7 +197,7 @@ class QuoteListItem extends StatelessWidget {
Text(
formatNumber(quote.amount, context,
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.publicNotes) +
(expense.documents.isNotEmpty ? ' 📎' : ''),
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
maxLines: 1,
),
),
Text(
formatNumber(expense.convertedAmount, context,
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(
child: Text(
client.displayName,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
overflow: TextOverflow.ellipsis,
),
),
@ -205,7 +205,7 @@ class RecurringInvoiceListItem extends StatelessWidget {
Text(
formatNumber(invoice.amount, context,
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(
child: Text(
subscription.name,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
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 ? ' 📎' : ''),
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
duration,

View File

@ -79,11 +79,11 @@ class TaskStatusListItem extends StatelessWidget {
Expanded(
child: Text(
taskStatus.name,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
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(
child: Text(
'${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),
style: Theme.of(context).textTheme.headline6),
style: Theme.of(context).textTheme.subtitle1),
],
),
),

View File

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

View File

@ -74,11 +74,11 @@ class UserListItem extends StatelessWidget {
Expanded(
child: Text(
user.listDisplayName,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
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(
child: Text(
vendor.name + (documents.isNotEmpty ? ' 📎' : ''),
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
/*
Text(
formatNumber(vendor.balance, context,
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(
child: Text(
webhook.targetUrl,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
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(
child: Text(
stub.name,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.subtitle1,
),
),
Text(formatNumber(stub.listDisplayAmount, context),
style: Theme.of(context).textTheme.headline6),
style: Theme.of(context).textTheme.subtitle1),
],
),
),