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:
commit
18f97426e5
1 changed files with 18 additions and 0 deletions
|
|
@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue