commit
7f66256fd3
3 changed files with 11 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue