NikuIconButton class
Niku extension for Material Raised Button
Style property builder for building Raised Button
Example usage:
NikuIconButton(Icon(Icons.edit))
.color(Colors.blue)
.p(40)
Meta property list:
- niku() - Switch to Niku() property
- build() - Apply styles and build RaisedButton as Widget
- apply() - Apply existing NikuOutlineButton's property to current style
- style() - Apply existing NikuOutlineButton's property to current style and build
Style Property list:
- onPressed - Callback when button is pressed
- visualDensity - Defines the visual density of user interface components
- padding, p - Padding of container
- padding, p - apply padding to all side
- px - apply padding to x axis
- py - apply padding y axis
- pt - apply padding top side
- pl - apply padding left side
- pb - apply padding bottom side
- pl - apply padding right side
- alignment, align - Set self alignment
- align - Accept Alignment to align self
- topLeft - Apply widget to top-left
- topCenter - Apply widget to top-center
- topRight - Apply widget to top-right
- centerLeft - Apply widget to center-left
- center - Apply widget to center
- centerRight - Apply widget to center-right
- bottomLeft - Apply widget to bottom-left
- bottomCenter - Apply widget to bottom-center
- bottomRight - Apply widget to bottom-right
- splashRadius - The splash radius. If null, default splash radius of Material.defaultSplashRadius is used
- setColor - Apply color to all button property
- setColor - Apply all color property using named property
- bg, color - Apply color to button background
- disabled - Background color of button when disabled
- hover - Background color of button when hovered
- focus - Background color of button when focused
- highlight - Background color of button when highlighted
- splash - Splash/Ripple color of button
- mouseCursor - The cursor for a mouse pointer when it enters or is hovering over the button
- focusNode - An optional focus node to use as the focus node for this widget
- autofocus - Determine whether button should be auto focus
- tooltip - Explaination of the button
- enableFeedback - Whether detected gestures should provide acoustic and/or haptic feedback
- constraints - Whether detected gestures should provide acoustic and/or haptic feedback
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- NikuCore
- NikuIconButton
- Available extensions
Constructors
- NikuIconButton(Widget _icon, {Key? key})
Properties
- getMb → double
-
no setterinherited
- getMl → double
-
no setterinherited
- getMouseCursor ↔ MouseCursor
-
getter/setter pair
- getMr → double
-
no setterinherited
- getMt → double
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
align(
Alignment align) → NikuIconButton - Apply alignment to widget
-
alignment(
Alignment align) → NikuIconButton - Apply alignment to widget
-
apply(
NikuIconButton instance) → NikuIconButton - Apply existing NikuIconButton's property to current style
-
autofocus(
bool autofocus) → NikuIconButton - Determine whether button should be auto focus
-
bottomCenter(
) → NikuIconButton - Apply widget to bottom center
-
bottomLeft(
) → NikuIconButton - Apply widget to bottom left
-
bottomRight(
) → NikuIconButton - Apply widget to bottom right
-
build(
BuildContext context) → Widget -
Apply existing NikuIconButton's property to current style and build
override
-
center(
) → NikuIconButton - Apply widget to center
-
centerLeft(
) → NikuIconButton - Apply widget to center left
-
centerRight(
) → NikuIconButton - Apply widget to center right
-
clone(
dynamic item) → Map< String, dynamic> -
inherited
-
color(
Color color) → NikuIconButton - Apply color to button background
-
constraints(
BoxConstraints boxConstraints) → NikuIconButton - Set constraints layout of button
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
cursor(
MouseCursor click) → NikuIconButton - The cursor for a mouse pointer when it enters or is hovering over the button
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
disabled(
Color color) → NikuIconButton - Background color of button when disabled
-
enableFeedback(
[bool enableFeedback = true]) → NikuIconButton - Whether detected gestures should provide acoustic and/or haptic feedback
-
focus(
Color color) → NikuIconButton - Background color of button when focused
-
focusNode(
FocusNode focusNode) → NikuIconButton - An optional focus node to use as the focus node for this widget
-
highlight(
Color color) → NikuIconButton - Background color of button when highlighted
-
hover(
Color color) → NikuIconButton - Background color of button when hovered
-
internalBuild(
Widget widget) → Widget -
inherited
-
m(
double margin) → NikuCore -
Apply margin to top
inherited
-
margin(
EdgeInsets padding) → NikuCore -
Apply margin using
EdgeInsetinherited -
maxHeight(
double input) → NikuIconButton - Set maximum height of button
-
maximumHeight(
double input) → NikuIconButton - Set maximum height of button
-
maximumSize(
double x, double y) → NikuIconButton - Set maximum button size of both width and height
-
maximumWidth(
double input) → NikuIconButton - Set maximum width of button
-
maxSize(
double x, double y) → NikuIconButton - Set maximum button size of both width and height
-
maxWidth(
double input) → NikuIconButton - Set maximum width of button
-
mb(
double margin) → NikuCore -
Apply margin to bottom
inherited
-
minHeight(
double input) → NikuIconButton - Set minimum height of button
-
minimumHeight(
double input) → NikuIconButton - Set minimum height of button
-
minimumSize(
double x, double y) → NikuIconButton - Set minmum button size of both width and height
-
minimumWidth(
double input) → NikuIconButton - Set minimum width of button
-
minSize(
double x, double y) → NikuIconButton - Set minmum button size of both width and height
-
minWidth(
double input) → NikuIconButton - Set minimum width of button
-
ml(
double margin) → NikuCore -
Apply margin to left side
inherited
-
mouseCursor(
MouseCursor click) → NikuIconButton - The cursor for a mouse pointer when it enters or is hovering over the button
-
mr(
double margin) → NikuCore -
Apply margin to right side
inherited
-
mt(
double margin) → NikuCore -
Apply margin to top
inherited
-
mx(
double margin) → NikuCore -
Apply margin to x axis
inherited
-
my(
double margin) → NikuCore -
Apply margin to y axis
inherited
-
niku(
) → Niku -
Available on Widget, provided by the NikuWidget extension
Switch to Niku() property -
niku(
) → Niku - Switch to Niku() property
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onPressed(
VoidCallback? callback) → NikuIconButton - Callback when button is pressed
-
p(
double padding) → NikuIconButton - Apply padding to all side
-
padding(
EdgeInsets padding) → NikuIconButton -
Apply padding using
EdgeInset -
pb(
double padding) → NikuIconButton - Apply padding to bottom
-
pl(
double padding) → NikuIconButton - Apply padding to left side
-
pr(
double padding) → NikuIconButton - Apply padding to right
-
pt(
double padding) → NikuIconButton - Apply padding to top
-
px(
double padding) → NikuIconButton - Apply padding to x axis
-
py(
double padding) → NikuIconButton - Apply padding to y axis
-
set(
{double iconSize = 24, VisualDensity? visualDensity, double pt = 0, double pl = 0, double pb = 0, double pr = 0, double mt = 0, double ml = 0, double mb = 0, double mr = 0, Alignment alignment = Alignment.center, double? splashRadius, Color? color, Color? focusColor, Color? hoverColor, Color? highlightColor, Color? splashColor, Color? disabledColor, VoidCallback? onPressed, MouseCursor mouseCursor = SystemMouseCursors.click, FocusNode? focusNode, bool autofocus = false, String? tooltip, bool enableFeedback = true, BoxConstraints? constraints}) → NikuIconButton -
setColor(
{Color? color, Color? disabled, Color? focus, Color? hover, Color? highlight, Color? splash}) → NikuIconButton - Apply all color property using named property
-
size(
double x, double y) → NikuIconButton - Set size of button
-
splash(
Color color) → NikuIconButton - Splash/Ripple color of button
-
splashRadius(
double radius) → NikuIconButton - The splash radius. If null, default splash radius of Material.defaultSplashRadius is used
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
tooltip(
String tooltip) → NikuIconButton - Explaination of the button
-
topCenter(
) → NikuIconButton - Apply widget to top center
-
topLeft(
) → NikuIconButton - Apply widget to top left
-
topRight(
) → NikuIconButton - Apply widget to top right
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
-
visualDensity(
VisualDensity visualDensity) → NikuIconButton - Defines the visual density of user interface components
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited