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
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();
}

@ -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,
);
}

@ -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,
);

Loading…
Cancel
Save