From 51c772a2a119852cf62f1f0b97b1af585c054fbf Mon Sep 17 00:00:00 2001 From: juan Date: Thu, 21 Aug 2025 13:50:05 -0400 Subject: [PATCH] case where the folder is drafts, don't open the email but instead the compose widget --- lib/email.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/email.dart b/lib/email.dart index dd5fee1..926e753 100644 --- a/lib/email.dart +++ b/lib/email.dart @@ -3,6 +3,7 @@ import 'package:markdown/markdown.dart' as md; import 'api_service.dart'; import 'structs.dart'; import 'emailView.dart'; +import 'Compose.dart'; class EmailListScreen extends StatefulWidget { final List emails; @@ -193,6 +194,10 @@ class _EmailListScreenState extends State print(email.messages); //email ids of the thread if (widget.folder == "Drafts") { print("IN DRAFTS MOVE THE CONTENT TO THE WRITING THING"); + //open the compose + OverlayService _thisInstance = OverlayService(); + _thisInstance.draftID = email; + _thisInstance.showPersistentWidget(context); } else { Navigator.push( context,