Merge pull request #739 from pangeachat/testing-fixes

Testing fixes
pull/1423/head
ggurdin 1 year ago committed by GitHub
commit 7f66256fd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -470,6 +470,14 @@ class ChatController extends State<ChatPageWithRoom>
@override @override
void didChangeAppLifecycleState(AppLifecycleState state) { 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; if (state != AppLifecycleState.resumed) return;
setReadMarker(); setReadMarker();
} }

@ -124,7 +124,7 @@ class IgcController {
), ),
roomId: choreographer.roomId, 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, transformTargetId: choreographer.inputTransformTargetKey,
); );
} }

@ -114,8 +114,8 @@ class PangeaTextController extends TextEditingController {
context: context, context: context,
cardSize: matchIndex != -1 && cardSize: matchIndex != -1 &&
choreographer.igc.igcTextData!.matches[matchIndex].isITStart choreographer.igc.igcTextData!.matches[matchIndex].isITStart
? const Size(350, 260) ? const Size(325, 260)
: const Size(350, 400), : const Size(325, 400),
cardToShow: cardToShow, cardToShow: cardToShow,
transformTargetId: choreographer.inputTransformTargetKey, transformTargetId: choreographer.inputTransformTargetKey,
); );

Loading…
Cancel
Save