mirror of
https://github.com/koloideal/Casha.git
synced 2026-06-10 10:25:28 +03:00
update
This commit is contained in:
@@ -360,65 +360,79 @@ class _AddTransactionScreenState extends ConsumerState<AddTransactionScreen>
|
|||||||
|
|
||||||
_SectionLabel('Date'),
|
_SectionLabel('Date'),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
GestureDetector(
|
Row(
|
||||||
onTap: _pickDate,
|
children: [
|
||||||
child: Container(
|
// DATE column
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
|
Expanded(
|
||||||
decoration: BoxDecoration(
|
child: GestureDetector(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
onTap: _pickDate,
|
||||||
borderRadius: BorderRadius.circular(12),
|
child: Container(
|
||||||
border: isDark ? null : Border.all(color: const Color(0xFFCCCCDD), width: 1),
|
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
|
||||||
),
|
decoration: BoxDecoration(
|
||||||
child: Row(
|
color: Theme.of(context).colorScheme.surface,
|
||||||
children: [
|
borderRadius: BorderRadius.circular(12),
|
||||||
Icon(
|
border: isDark
|
||||||
Icons.calendar_today_rounded,
|
? null
|
||||||
size: 18,
|
: Border.all(color: const Color(0xFFCCCCDD), width: 1),
|
||||||
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.6),
|
),
|
||||||
),
|
child: Row(
|
||||||
const SizedBox(width: 10),
|
children: [
|
||||||
Text(
|
Icon(
|
||||||
DateFormat('MMMM d, yyyy').format(_selectedDate),
|
Icons.calendar_today_rounded,
|
||||||
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
size: 16,
|
||||||
color: Theme.of(context).colorScheme.onSurface,
|
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.6),
|
||||||
fontWeight: FontWeight.w500,
|
),
|
||||||
|
const SizedBox(width: 8),
|
||||||
|
Expanded(
|
||||||
|
child: Text(
|
||||||
|
DateFormat('MMM d, yyyy').format(_selectedDate),
|
||||||
|
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||||
|
color: Theme.of(context).colorScheme.onSurface,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
const SizedBox(width: 12),
|
||||||
),
|
// TIME column
|
||||||
const SizedBox(height: 12),
|
Expanded(
|
||||||
|
child: GestureDetector(
|
||||||
_SectionLabel('Time'),
|
onTap: _pickTime,
|
||||||
const SizedBox(height: 8),
|
child: Container(
|
||||||
GestureDetector(
|
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
|
||||||
onTap: _pickTime,
|
decoration: BoxDecoration(
|
||||||
child: Container(
|
color: Theme.of(context).colorScheme.surface,
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 14),
|
borderRadius: BorderRadius.circular(12),
|
||||||
decoration: BoxDecoration(
|
border: isDark
|
||||||
color: Theme.of(context).colorScheme.surface,
|
? null
|
||||||
borderRadius: BorderRadius.circular(12),
|
: 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: 16,
|
||||||
size: 18,
|
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.6),
|
||||||
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.6),
|
),
|
||||||
),
|
const SizedBox(width: 8),
|
||||||
const SizedBox(width: 10),
|
Text(
|
||||||
Text(
|
_selectedTime.format(context),
|
||||||
_selectedTime.format(context),
|
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,
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user