From 6a968110769c376b0c0e4637844655addaa11a77 Mon Sep 17 00:00:00 2001 From: ggurdin Date: Mon, 14 Oct 2024 10:49:22 -0400 Subject: [PATCH 1/2] on app close, close toolbar overlay --- lib/pages/chat/chat.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/pages/chat/chat.dart b/lib/pages/chat/chat.dart index ed223b061..a51a86b37 100644 --- a/lib/pages/chat/chat.dart +++ b/lib/pages/chat/chat.dart @@ -470,6 +470,14 @@ class ChatController extends State @override void didChangeAppLifecycleState(AppLifecycleState state) { + // #Pangea + // On iOS, if the toolbar is open and the app is closed, then the user goes + // back to do more toolbar activities, the toolbar buttons / selection don't + // update properly. So, when the user closes the app, close the toolbar overlay. + if (state == AppLifecycleState.paused) { + clearSelectedEvents(); + } + // Pangea# if (state != AppLifecycleState.resumed) return; setReadMarker(); } From 8e204c95e4ca7dc40005217c0aa876db0901f146 Mon Sep 17 00:00:00 2001 From: ggurdin Date: Mon, 14 Oct 2024 11:13:20 -0400 Subject: [PATCH 2/2] shrink spancard width to not overflow screen --- lib/pangea/choreographer/controllers/igc_controller.dart | 2 +- lib/pangea/widgets/igc/pangea_text_controller.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pangea/choreographer/controllers/igc_controller.dart b/lib/pangea/choreographer/controllers/igc_controller.dart index 4beea095f..470f7a45a 100644 --- a/lib/pangea/choreographer/controllers/igc_controller.dart +++ b/lib/pangea/choreographer/controllers/igc_controller.dart @@ -124,7 +124,7 @@ class IgcController { ), roomId: choreographer.roomId, ), - cardSize: match.isITStart ? const Size(350, 260) : const Size(400, 400), + cardSize: match.isITStart ? const Size(325, 260) : const Size(400, 400), transformTargetId: choreographer.inputTransformTargetKey, ); } diff --git a/lib/pangea/widgets/igc/pangea_text_controller.dart b/lib/pangea/widgets/igc/pangea_text_controller.dart index 63c5b3f94..314c19ee1 100644 --- a/lib/pangea/widgets/igc/pangea_text_controller.dart +++ b/lib/pangea/widgets/igc/pangea_text_controller.dart @@ -114,8 +114,8 @@ class PangeaTextController extends TextEditingController { context: context, cardSize: matchIndex != -1 && choreographer.igc.igcTextData!.matches[matchIndex].isITStart - ? const Size(350, 260) - : const Size(350, 400), + ? const Size(325, 260) + : const Size(325, 400), cardToShow: cardToShow, transformTargetId: choreographer.inputTransformTargetKey, );