Enhance Pad Tracking with new Flow and Supply logic
This commit is contained in:
@@ -140,6 +140,8 @@ class _PadTrackerCardState extends ConsumerState<PadTrackerCard> {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
|
||||
final isDark = Theme.of(context).brightness == Brightness.dark;
|
||||
|
||||
return GestureDetector(
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
@@ -150,7 +152,7 @@ class _PadTrackerCardState extends ConsumerState<PadTrackerCard> {
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(16),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
color: isDark ? const Color(0xFF1E1E1E) : Colors.white,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: _statusColor.withValues(alpha: 0.3)),
|
||||
boxShadow: [
|
||||
@@ -187,7 +189,7 @@ class _PadTrackerCardState extends ConsumerState<PadTrackerCard> {
|
||||
style: GoogleFonts.outfit(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppColors.charcoal,
|
||||
color: isDark ? Colors.white : AppColors.charcoal,
|
||||
),
|
||||
),
|
||||
InkWell(
|
||||
@@ -202,7 +204,9 @@ class _PadTrackerCardState extends ConsumerState<PadTrackerCard> {
|
||||
? Icons.arrow_downward
|
||||
: Icons.arrow_upward,
|
||||
size: 16,
|
||||
color: AppColors.warmGray),
|
||||
color: isDark
|
||||
? Colors.white70
|
||||
: AppColors.warmGray),
|
||||
)
|
||||
],
|
||||
),
|
||||
@@ -217,7 +221,8 @@ class _PadTrackerCardState extends ConsumerState<PadTrackerCard> {
|
||||
],
|
||||
),
|
||||
),
|
||||
const Icon(Icons.chevron_right, color: AppColors.lightGray),
|
||||
Icon(Icons.chevron_right,
|
||||
color: isDark ? Colors.white24 : AppColors.lightGray),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
|
||||
Reference in New Issue
Block a user