From 95ba90d2c14af06cc0d56355184b9ee1c991f99d Mon Sep 17 00:00:00 2001 From: Tristan Michael Date: Wed, 1 Apr 2026 01:35:32 -0700 Subject: [PATCH] DateTimePicker: simplify onTap handler for close icon Remove the redundant call to _done() in the close icon's onTap handler and simplify the callback to a single-expression setState. The change keeps behavior focused on hiding the time view (_showTime = false) and avoids invoking _done() on close, which aligns with the intended UI flow signaled by the task notification that the Flutter app relaunch completed successfully. --- apps/flutter/lib/src/widgets/date_time_picker.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/flutter/lib/src/widgets/date_time_picker.dart b/apps/flutter/lib/src/widgets/date_time_picker.dart index b5230f3..3cd0109 100644 --- a/apps/flutter/lib/src/widgets/date_time_picker.dart +++ b/apps/flutter/lib/src/widgets/date_time_picker.dart @@ -184,7 +184,7 @@ class _DateTimePickerState extends State { ), const Spacer(), GestureDetector( - onTap: () { setState(() => _showTime = false); _done(); }, + onTap: () => setState(() => _showTime = false), child: Icon(Icons.close, size: 18, color: (isDark ? AppTheme.textSecondaryDark : AppTheme.textSecondaryLight).withAlpha(160)), ), ],