Skip to content

Text

A representation of Typography.

NikuText accepts all the props as same as Text.

dart
// Using namespace
n.Text("Hello World");

// Using Niku Prefix
NikuText("Hello World");

Example Usage

dart
n.Text("Hello World")
    ..color = Colors.blue
    ..fontSize = 21
    ..bold;

Using extension

dart
"Hello World".n
    ..color = Colors.blue
    ..bold;

Defination

View Defination on pub.dev