Closed Time2HackJS closed 9 months ago
Hi @Time2HackJS , do not use CupertinoAlertDialog
, because it will center the text
CupertinoAlertDialog(
content: SingleChildScrollView(
child: Text(checkText),
),
)
@Time2HackJS I found a way to solve this issue, just need to set the TextAlign
to the rich text, wait me to fix it
@Time2HackJS I found a way to solve this issue, just need to set the
TextAlign
to the rich text, wait me to fix it
Any updates on this?
Hi @Time2HackJS , you can use markdown_widget 2.3.2+3
like this:
...
MarkdownBlock(
data: checkText,
config: MarkdownConfig(configs: [...]),
generator: MarkdownGenerator(richTextBuilder: (span) {
return Text.rich(span, textAlign: TextAlign.start);
}),
)
...
@asjqkkkk thanks a lot!
Hi, i'm using MarkdownBlock inside CupertinoAlertDialog and getting unusual behaviour of text inside unordered list elements.
There's no problem in regular alert dialog, but i need to align text properly exactly in cupertino alert dialog.
Here's the code i'm using.