base method
Apply styles and build only base of RaisedButton as Widget
? By using this method, margin won't be applied
Equivalent to
RaisedButton()
Example usage:
build(context) {
return (
NikuRaisedButton(Text("Applied Style"))
.px(40)
.py(20)
.bg(Colors.blue)
.base() // Colelct all style and build
)
}
Implementation
// ignore: deprecated_member_use
RaisedButton base({Key? key}) => RaisedButton(
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,
colorBrightness: this._colorBrightness,
clipBehavior: this._clipBehavior,
autofocus: this._autofocus,
shape: this._shape,
elevation: this._elevation,
focusElevation: this._focusElevation,
hoverElevation: this._hoverElevation,
disabledElevation: this._disabledElevation,
highlightElevation: this._highlightElevation,
textColor: this._textColor,
textTheme: this._buttonTextTheme);