Make number column in lists a bit narrower
This commit is contained in:
parent
6155d1a35a
commit
acc372f7a8
|
|
@ -88,6 +88,7 @@ const double kTableColumnGap = 20;
|
||||||
const double kTopBottomBarHeight = 50;
|
const double kTopBottomBarHeight = 50;
|
||||||
const double kDialogWidth = 400;
|
const double kDialogWidth = 400;
|
||||||
const double kDashboardPanelHeight = 525; // TODO remove this
|
const double kDashboardPanelHeight = 525; // TODO remove this
|
||||||
|
const double kListNumberWidth = 100;
|
||||||
|
|
||||||
const double kTabletLayoutWidth = 1100;
|
const double kTabletLayoutWidth = 1100;
|
||||||
const double kTabletDialogPadding = 250;
|
const double kTabletDialogPadding = 250;
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,7 @@ class ClientListItem extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
width: kListNumberWidth,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|
@ -110,7 +111,6 @@ class ClientListItem extends StatelessWidget {
|
||||||
if (!client.isActive) EntityStateLabel(client)
|
if (!client.isActive) EntityStateLabel(client)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
width: 120,
|
|
||||||
),
|
),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,8 @@ class CreditListItem extends StatelessWidget {
|
||||||
handleEntityAction(
|
handleEntityAction(
|
||||||
context, credit, action),
|
context, credit, action),
|
||||||
)),
|
)),
|
||||||
ConstrainedBox(
|
SizedBox(
|
||||||
|
width: kListNumberWidth,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|
@ -119,10 +120,6 @@ class CreditListItem extends StatelessWidget {
|
||||||
if (!credit.isActive) EntityStateLabel(credit)
|
if (!credit.isActive) EntityStateLabel(credit)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
constraints: BoxConstraints(
|
|
||||||
minWidth: 80,
|
|
||||||
maxWidth: 80,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|
|
||||||
|
|
@ -132,6 +132,7 @@ class ExpenseListItem extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
width: kListNumberWidth,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|
@ -143,7 +144,6 @@ class ExpenseListItem extends StatelessWidget {
|
||||||
if (!expense.isActive) EntityStateLabel(expense)
|
if (!expense.isActive) EntityStateLabel(expense)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
width: 120,
|
|
||||||
),
|
),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,8 @@ class InvoiceListItem extends StatelessWidget {
|
||||||
handleEntityAction(
|
handleEntityAction(
|
||||||
context, invoice, action),
|
context, invoice, action),
|
||||||
)),
|
)),
|
||||||
ConstrainedBox(
|
SizedBox(
|
||||||
|
width: kListNumberWidth,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|
@ -124,10 +125,6 @@ class InvoiceListItem extends StatelessWidget {
|
||||||
if (!invoice.isActive) EntityStateLabel(invoice)
|
if (!invoice.isActive) EntityStateLabel(invoice)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
constraints: BoxConstraints(
|
|
||||||
minWidth: 80,
|
|
||||||
maxWidth: 80,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,8 @@ class PaymentListItem extends StatelessWidget {
|
||||||
handleEntityAction(
|
handleEntityAction(
|
||||||
context, payment, action),
|
context, payment, action),
|
||||||
)),
|
)),
|
||||||
ConstrainedBox(
|
SizedBox(
|
||||||
|
width: kListNumberWidth,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|
@ -117,9 +118,6 @@ class PaymentListItem extends StatelessWidget {
|
||||||
if (!payment.isActive) EntityStateLabel(payment)
|
if (!payment.isActive) EntityStateLabel(payment)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
constraints: BoxConstraints(
|
|
||||||
minWidth: 80,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,7 @@ class ProductListItem extends StatelessWidget {
|
||||||
context, product, action),
|
context, product, action),
|
||||||
)),
|
)),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
width: kListNumberWidth,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|
@ -114,7 +115,6 @@ class ProductListItem extends StatelessWidget {
|
||||||
if (!product.isActive) EntityStateLabel(product)
|
if (!product.isActive) EntityStateLabel(product)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
width: 120,
|
|
||||||
),
|
),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,7 @@ class ProjectListItem extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
width: kListNumberWidth,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|
@ -115,7 +116,6 @@ class ProjectListItem extends StatelessWidget {
|
||||||
if (!project.isActive) EntityStateLabel(project)
|
if (!project.isActive) EntityStateLabel(project)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
width: 120,
|
|
||||||
),
|
),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,8 @@ class QuoteListItem extends StatelessWidget {
|
||||||
handleEntityAction(
|
handleEntityAction(
|
||||||
context, quote, action),
|
context, quote, action),
|
||||||
)),
|
)),
|
||||||
ConstrainedBox(
|
SizedBox(
|
||||||
|
width: kListNumberWidth,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|
@ -116,10 +117,6 @@ class QuoteListItem extends StatelessWidget {
|
||||||
if (!quote.isActive) EntityStateLabel(quote)
|
if (!quote.isActive) EntityStateLabel(quote)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
constraints: BoxConstraints(
|
|
||||||
minWidth: 80,
|
|
||||||
maxWidth: 80,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,8 @@ class RecurringInvoiceListItem extends StatelessWidget {
|
||||||
handleEntityAction(
|
handleEntityAction(
|
||||||
context, invoice, action),
|
context, invoice, action),
|
||||||
)),
|
)),
|
||||||
ConstrainedBox(
|
SizedBox(
|
||||||
|
width: kListNumberWidth,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|
@ -121,10 +122,6 @@ class RecurringInvoiceListItem extends StatelessWidget {
|
||||||
if (!invoice.isActive) EntityStateLabel(invoice)
|
if (!invoice.isActive) EntityStateLabel(invoice)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
constraints: BoxConstraints(
|
|
||||||
minWidth: 80,
|
|
||||||
maxWidth: 80,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,7 @@ class TaskListItem extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
width: kListNumberWidth,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|
@ -144,7 +145,6 @@ class TaskListItem extends StatelessWidget {
|
||||||
if (!task.isActive) EntityStateLabel(task)
|
if (!task.isActive) EntityStateLabel(task)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
width: 120,
|
|
||||||
),
|
),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,7 @@ class VendorListItem extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
width: kListNumberWidth,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|
@ -111,7 +112,6 @@ class VendorListItem extends StatelessWidget {
|
||||||
if (!vendor.isActive) EntityStateLabel(vendor)
|
if (!vendor.isActive) EntityStateLabel(vendor)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
width: 120,
|
|
||||||
),
|
),
|
||||||
SizedBox(width: 10),
|
SizedBox(width: 10),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue