Dashboard
This commit is contained in:
parent
1a1b4b6237
commit
3951efdabd
|
|
@ -188,8 +188,10 @@ class CreditListItem extends StatelessWidget {
|
||||||
child: Text(
|
child: Text(
|
||||||
client.displayName,
|
client.displayName,
|
||||||
style: Theme.of(context).textTheme.headline6,
|
style: Theme.of(context).textTheme.headline6,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
SizedBox(width: 4),
|
||||||
Text(
|
Text(
|
||||||
formatNumber(
|
formatNumber(
|
||||||
credit.balance > 0
|
credit.balance > 0
|
||||||
|
|
|
||||||
|
|
@ -311,7 +311,7 @@ class _DashboardSidebar extends StatelessWidget {
|
||||||
child: Text(label1, style: textTheme.bodyText2),
|
child: Text(label1, style: textTheme.bodyText2),
|
||||||
padding: const EdgeInsets.symmetric(vertical: 12),
|
padding: const EdgeInsets.symmetric(vertical: 12),
|
||||||
),
|
),
|
||||||
Flexible(
|
Expanded(
|
||||||
child: list1 == null ? Text(localization.noRecordsFound) : list1,
|
child: list1 == null ? Text(localization.noRecordsFound) : list1,
|
||||||
),
|
),
|
||||||
if (label2 != null) ...[
|
if (label2 != null) ...[
|
||||||
|
|
@ -319,12 +319,14 @@ class _DashboardSidebar extends StatelessWidget {
|
||||||
child: Text(label2, style: textTheme.bodyText2),
|
child: Text(label2, style: textTheme.bodyText2),
|
||||||
padding: const EdgeInsets.symmetric(vertical: 12),
|
padding: const EdgeInsets.symmetric(vertical: 12),
|
||||||
),
|
),
|
||||||
Flexible(
|
Expanded(
|
||||||
child: list2 == null ? Text(localization.noRecordsFound) : list2,
|
child: list2 == null ? Text(localization.noRecordsFound) : list2,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
AnimatedContainer(
|
AnimatedContainer(
|
||||||
height: label3 == null ? 0 : 200,
|
height: label3 == null
|
||||||
|
? 0
|
||||||
|
: (MediaQuery.of(context).size.height - 50) / 2,
|
||||||
duration: Duration(milliseconds: kDefaultAnimationDuration),
|
duration: Duration(milliseconds: kDefaultAnimationDuration),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
|
@ -383,7 +385,9 @@ class _InvoiceSidebar extends StatelessWidget {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
label3: selectedIds == null ? null : localization.selectedInvoices,
|
label3: selectedIds == null ? null : localization.selectedInvoices,
|
||||||
list3: ListView.builder(
|
list3: selectedIds == null
|
||||||
|
? null
|
||||||
|
: ListView.builder(
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
itemCount: selectedIds?.length,
|
itemCount: selectedIds?.length,
|
||||||
itemBuilder: (BuildContext context, int index) {
|
itemBuilder: (BuildContext context, int index) {
|
||||||
|
|
|
||||||
|
|
@ -198,8 +198,10 @@ class InvoiceListItem extends StatelessWidget {
|
||||||
child: Text(
|
child: Text(
|
||||||
client.displayName,
|
client.displayName,
|
||||||
style: Theme.of(context).textTheme.headline6,
|
style: Theme.of(context).textTheme.headline6,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
SizedBox(width: 4),
|
||||||
Text(
|
Text(
|
||||||
formatNumber(
|
formatNumber(
|
||||||
invoice.balance > 0
|
invoice.balance > 0
|
||||||
|
|
|
||||||
|
|
@ -197,8 +197,10 @@ class QuoteListItem extends StatelessWidget {
|
||||||
child: Text(
|
child: Text(
|
||||||
client.displayName,
|
client.displayName,
|
||||||
style: Theme.of(context).textTheme.headline6,
|
style: Theme.of(context).textTheme.headline6,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
SizedBox(width: 4),
|
||||||
Text(
|
Text(
|
||||||
formatNumber(
|
formatNumber(
|
||||||
quote.balance > 0
|
quote.balance > 0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue