refactor(ui_kit): remove selection area of rich text, its not his reponsibility
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Hugo Pointcheval 2023-03-02 15:52:55 +01:00
parent 70c6d91310
commit dbe8554eb7
Signed by: hugo
GPG Key ID: 3AAC487E131E00BC

View File

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