Code Formatted
This commit is contained in:
@@ -101,7 +101,8 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
|
||||
? fromDate!.add(const Duration(days: 183))
|
||||
: now;
|
||||
final initialToDate = toDate ?? now;
|
||||
final clampedInitialToDate = initialToDate.isBefore(fromDate!) ? fromDate! : initialToDate;
|
||||
final clampedInitialToDate =
|
||||
initialToDate.isBefore(fromDate!) ? fromDate! : initialToDate;
|
||||
final picked = await showDatePicker(
|
||||
context: context,
|
||||
initialDate: clampedInitialToDate,
|
||||
@@ -238,8 +239,11 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
|
||||
itemCount: 3,
|
||||
itemBuilder: (_, __) => ListTile(
|
||||
leading: Shimmer.fromColors(
|
||||
baseColor: Theme.of(context).colorScheme.surfaceVariant,
|
||||
highlightColor: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
baseColor:
|
||||
Theme.of(context).colorScheme.surfaceVariant,
|
||||
highlightColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.onSurfaceVariant,
|
||||
child: CircleAvatar(
|
||||
radius: 12,
|
||||
backgroundColor:
|
||||
@@ -247,8 +251,11 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
|
||||
),
|
||||
),
|
||||
title: Shimmer.fromColors(
|
||||
baseColor: Theme.of(context).colorScheme.surfaceVariant,
|
||||
highlightColor: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
baseColor:
|
||||
Theme.of(context).colorScheme.surfaceVariant,
|
||||
highlightColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.onSurfaceVariant,
|
||||
child: Container(
|
||||
height: 10,
|
||||
width: 100,
|
||||
@@ -257,8 +264,11 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
|
||||
),
|
||||
),
|
||||
subtitle: Shimmer.fromColors(
|
||||
baseColor: Theme.of(context).colorScheme.surfaceVariant,
|
||||
highlightColor: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
baseColor:
|
||||
Theme.of(context).colorScheme.surfaceVariant,
|
||||
highlightColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.onSurfaceVariant,
|
||||
child: Container(
|
||||
height: 8,
|
||||
width: 60,
|
||||
@@ -288,7 +298,9 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
|
||||
? Symbols.call_received
|
||||
: Symbols.call_made,
|
||||
color: tx.type == 'CR'
|
||||
? Theme.of(context).colorScheme.secondary
|
||||
? Theme.of(context)
|
||||
.colorScheme
|
||||
.secondary
|
||||
: Theme.of(context).colorScheme.error,
|
||||
),
|
||||
title: Text(
|
||||
@@ -332,7 +344,8 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
|
||||
);
|
||||
},
|
||||
separatorBuilder: (context, index) {
|
||||
return Divider(color: Theme.of(context).dividerColor);
|
||||
return Divider(
|
||||
color: Theme.of(context).dividerColor);
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user