This commit is contained in:
2026-03-21 00:41:55 +03:00
parent 928670bbf5
commit 50d811eb69
+28 -14
View File
@@ -360,55 +360,66 @@ class _AddTransactionScreenState extends ConsumerState<AddTransactionScreen>
_SectionLabel('Date'), _SectionLabel('Date'),
const SizedBox(height: 8), const SizedBox(height: 8),
GestureDetector( Row(
children: [
// DATE column
Expanded(
child: GestureDetector(
onTap: _pickDate, onTap: _pickDate,
child: Container( child: Container(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14), padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context).colorScheme.surface, color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
border: isDark ? null : Border.all(color: const Color(0xFFCCCCDD), width: 1), border: isDark
? null
: Border.all(color: const Color(0xFFCCCCDD), width: 1),
), ),
child: Row( child: Row(
children: [ children: [
Icon( Icon(
Icons.calendar_today_rounded, Icons.calendar_today_rounded,
size: 18, size: 16,
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.6), color: Theme.of(context).colorScheme.onSurface.withOpacity(0.6),
), ),
const SizedBox(width: 10), const SizedBox(width: 8),
Text( Expanded(
DateFormat('MMMM d, yyyy').format(_selectedDate), child: Text(
DateFormat('MMM d, yyyy').format(_selectedDate),
style: Theme.of(context).textTheme.bodyMedium?.copyWith( style: Theme.of(context).textTheme.bodyMedium?.copyWith(
color: Theme.of(context).colorScheme.onSurface, color: Theme.of(context).colorScheme.onSurface,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
), ),
overflow: TextOverflow.ellipsis,
),
), ),
], ],
), ),
), ),
), ),
const SizedBox(height: 12), ),
const SizedBox(width: 12),
_SectionLabel('Time'), // TIME column
const SizedBox(height: 8), Expanded(
GestureDetector( child: GestureDetector(
onTap: _pickTime, onTap: _pickTime,
child: Container( child: Container(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14), padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context).colorScheme.surface, color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
border: isDark ? null : Border.all(color: const Color(0xFFCCCCDD), width: 1), border: isDark
? null
: Border.all(color: const Color(0xFFCCCCDD), width: 1),
), ),
child: Row( child: Row(
children: [ children: [
Icon( Icon(
Icons.access_time_rounded, Icons.access_time_rounded,
size: 18, size: 16,
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.6), color: Theme.of(context).colorScheme.onSurface.withOpacity(0.6),
), ),
const SizedBox(width: 10), const SizedBox(width: 8),
Text( Text(
_selectedTime.format(context), _selectedTime.format(context),
style: Theme.of(context).textTheme.bodyMedium?.copyWith( style: Theme.of(context).textTheme.bodyMedium?.copyWith(
@@ -420,6 +431,9 @@ class _AddTransactionScreenState extends ConsumerState<AddTransactionScreen>
), ),
), ),
), ),
),
],
),
const SizedBox(height: 20), const SizedBox(height: 20),
_SectionLabel('Note (optional)'), _SectionLabel('Note (optional)'),