Appearance
Button #
A representation of Button.
NikuButton
accepts all the props as same as Button.
// Using namespace
n.Button("".n);
// Using Niku Prefix
NikuButton("".n);
Example Usage #
n.Button("My Button".n)
..color = Colors.blue
..splash = Colors.blue.withOpacity(.1)
..fontSize = 16
..bold
..rounded = 8
..px = 16
..py = 8;
Factory Method #
Niku can accepts 6 factory method.
Factory Method | Equivalent Widget |
---|---|
n.Button | TextButton |
n.Button.icon | TextButton.icon |
n.Button.elevated | ElevatedButton |
n.Button.elevatedIcon | ElevatedButton.icon |
n.Button.outlined | OutlinedButton |
n.Button.outlinedIcon | OutlineButton.icon |