Revamp stage one - individual account and account setup fixed
This commit is contained in:
@@ -11,6 +11,7 @@ class UpcomingDuesWidget extends ConsumerWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final isDark = Theme.of(context).brightness == Brightness.dark;
|
||||
final walletsState = ref.watch(walletProvider);
|
||||
|
||||
if (!walletsState.hasValue || walletsState.value == null) {
|
||||
@@ -126,11 +127,11 @@ class UpcomingDuesWidget extends ConsumerWidget {
|
||||
margin: const EdgeInsets.only(bottom: 12),
|
||||
padding: const EdgeInsets.all(16),
|
||||
decoration: BoxDecoration(
|
||||
color: isUrgent ? Colors.red.shade50 : Colors.white,
|
||||
color: isUrgent ? (isDark ? Colors.red.withOpacity(0.2) : Colors.red.shade50) : Theme.of(context).cardColor,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: isUrgent ? Colors.red.shade200 : Colors.grey.shade200),
|
||||
border: Border.all(color: isUrgent ? (isDark ? Colors.red.withOpacity(0.5) : Colors.red.shade200) : Theme.of(context).dividerColor.withOpacity(isDark ? 0.1 : 0.2)),
|
||||
boxShadow: [
|
||||
if (!isUrgent) BoxShadow(color: Colors.black.withOpacity(0.02), blurRadius: 8, offset: const Offset(0, 2))
|
||||
if (!isUrgent) BoxShadow(color: Colors.black.withOpacity(isDark ? 0.2 : 0.02), blurRadius: 8, offset: const Offset(0, 2))
|
||||
],
|
||||
),
|
||||
child: Row(
|
||||
@@ -153,7 +154,7 @@ class UpcomingDuesWidget extends ConsumerWidget {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(w.name, style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 15)),
|
||||
Text(w.name, style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15, color: Theme.of(context).textTheme.bodyLarge?.color)),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
'$label • ${DateFormat('MMM dd').format(dueDate)}',
|
||||
@@ -171,7 +172,7 @@ class UpcomingDuesWidget extends ConsumerWidget {
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 16,
|
||||
color: isUrgent ? Colors.red.shade700 : Colors.black87
|
||||
color: isUrgent ? (isDark ? Colors.redAccent : Colors.red.shade700) : Theme.of(context).textTheme.bodyLarge?.color
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user