refactor(ui_kit): remove selection area of rich text, its not his reponsibility

This commit is contained in:
Hugo Pointcheval 2023-03-02 15:52:55 +01:00
parent 8d8f92e479
commit 762e037689
Signed by: hugo
GPG Key ID: 3AAC487E131E00BC

View File

@ -87,13 +87,10 @@ class RichTextBuilder extends RichTextBuilderComponent
); );
}, },
); );
return Text.rich(
return SelectionArea( TextSpan(children: [root.toInlineSpan(customParser)]),
child: Text.rich( textHeightBehavior:
TextSpan(children: [root.toInlineSpan(customParser)]), const TextHeightBehavior(applyHeightToLastDescent: false),
textHeightBehavior:
const TextHeightBehavior(applyHeightToLastDescent: false),
),
); );
} }
} }