Tooltip

tooltip

A tooltip is a small, interactive, textual hint for main elements that act as a helper to a specific item.

Usage

XelaTooltip(
    child: Text("Earth is the third planet from the Sun and\n" +
        "the only astronomical object known to harbor\n" +
        "life. According to radiometric dating estimation\n" +
        "and other evidence, Earth formed over\n" +
        "4.5 billion years ago.", style: XelaTextStyle.XelaCaption.apply(color: Colors.white),),
    arrowDirection: XelaTooltipArrowDirection.BOTTOM,
    background: XelaColor.Green2,
)

Properties

Name Type Default Value Required Description
child Widget - YES Tooltip child widget
arrowDirection XelaTooltipArrowDirection XelaTooltipArrowDirection.BOTTOM NO Arrow align (TOP, RIGHT, BOTTOM, LEFT, BOTTOM_RIGHT, BOTTOM_LEFT, TOP_RIGHT, TOP_LEFT, RIGHT_TOP, RIGHT_BOTTOM, LEFT_TOP, LEFT_BOTTOM,)
background Color XelaColor.Gray3 NO Tooltip background color