Merge pull request #4898 from pangeachat/4896-punctiation-doesnt-align-with-the-rest-of-the-text-in-practice-mode

fix: fix non-token vertical spacing in practice mode
This commit is contained in:
ggurdin 2025-12-18 13:15:15 -05:00 committed by GitHub
commit 18f97426e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -985,6 +985,24 @@ class HtmlMessage extends StatelessWidget {
),
),
),
if (overlayController != null)
ListenableBuilder(
listenable: overlayController!.practiceController,
builder: (context, _) => AnimatedSize(
duration: const Duration(
milliseconds: AppConfig.overlayAnimationDuration,
),
curve: Curves.easeOut,
child: SizedBox(
height:
overlayController!.practiceController.practiceMode !=
MessagePracticeMode.noneSelected
? 16.0
: 0.0,
width: 0,
),
),
),
],
),
);