|
|
@ -13,6 +13,7 @@ class AkuButton extends StatefulWidget {
|
|
|
|
@required
|
|
|
|
@required
|
|
|
|
final VoidCallback onPressed;
|
|
|
|
final VoidCallback onPressed;
|
|
|
|
final Color color;
|
|
|
|
final Color color;
|
|
|
|
|
|
|
|
final double width;
|
|
|
|
AkuButton({
|
|
|
|
AkuButton({
|
|
|
|
Key key,
|
|
|
|
Key key,
|
|
|
|
this.child,
|
|
|
|
this.child,
|
|
|
@ -21,6 +22,7 @@ class AkuButton extends StatefulWidget {
|
|
|
|
this.onPressed,
|
|
|
|
this.onPressed,
|
|
|
|
this.padding = EdgeInsets.zero,
|
|
|
|
this.padding = EdgeInsets.zero,
|
|
|
|
this.color = Colors.transparent,
|
|
|
|
this.color = Colors.transparent,
|
|
|
|
|
|
|
|
this.width = 0,
|
|
|
|
}) : super(key: key);
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
@ -38,6 +40,7 @@ class _AkuButtonState extends State<AkuButton> with PlatformMixin {
|
|
|
|
minHeight: widget.height,
|
|
|
|
minHeight: widget.height,
|
|
|
|
padding: widget.padding,
|
|
|
|
padding: widget.padding,
|
|
|
|
color: widget.color,
|
|
|
|
color: widget.color,
|
|
|
|
|
|
|
|
minWidth: widget.width,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: AkuMaterialButton(
|
|
|
|
: AkuMaterialButton(
|
|
|
|
onPressed: widget.onPressed,
|
|
|
|
onPressed: widget.onPressed,
|
|
|
@ -46,6 +49,7 @@ class _AkuButtonState extends State<AkuButton> with PlatformMixin {
|
|
|
|
height: widget.height,
|
|
|
|
height: widget.height,
|
|
|
|
padding: widget.padding,
|
|
|
|
padding: widget.padding,
|
|
|
|
color: widget.color,
|
|
|
|
color: widget.color,
|
|
|
|
|
|
|
|
minWidth: widget.width,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|