Skip to content
On this page

Text Span

A representation of Typography.

NikuTextSpan accepts all the props as same as RichText.

// Using namespace
n.TextSpan("");

// Using Niku Prefix
NikuTextSpan("");

Example Usage

n.TextSpan("Rich Text: ")
    ..color = Colors.black
    ..children = [
        n.TextSpan("with "),
        n.TextSpan("underline")..underline,
        n.TextSpan(" and "),
        n.TextSpan("italic")..italic,
    ];

Using extension

"Rich Text: ".n.span
    ..color = Colors.black;

Defination

View Defination on pub.dev