base method
Apply styles and build only base of FlatButton as Widget
? By using this method, margin won't be applied
Equivalent to
FlatButton()
Example usage:
build(context) {
return (
NikuFlatButton(Text("Applied Style"))
.px(40)
.py(20)
.bg(Colors.blue)
.base() // Colelct all style and build
)
}
Implementation
// ignore: deprecated_member_use
Widget base({Key? key}) => FlatButton(
child: this.child,
key: key,
onPressed: this._onPressed,
onLongPress: this._onLongPressed,
padding: EdgeInsets.only(top: _pt, left: _pl, bottom: _pb, right: _pr),
color: this._color,
disabledColor: this._disabledColor,
focusColor: this._focusColor,
hoverColor: this._hoverColor,
highlightColor: this._highlightColor,
splashColor: this._splashColor,
textColor: this._textColor,
colorBrightness: this._colorBrightness,
clipBehavior: this._clipBehavior,
autofocus: this._autofocus,
minWidth: this._minWidth,
height: this._height,
shape: this._shape,
textTheme: this._buttonTextTheme);