showDialogText function
Shows a text dialog.
text
The text to show.
transparency
The transparency of the dialog as double.
padding
The padding of the dialog.
Implementation
DivElement? showDialogText(String? text,
{double? transparency, String? padding}) {
if (text == null || text.isEmpty) return null;
var element = SpanElement();
element.text = text;
return showDialogElement(element,
transparency: transparency, padding: padding);
}