|
|
@ -12,6 +12,7 @@ class AkuButton extends StatefulWidget {
|
|
|
|
final EdgeInsets padding;
|
|
|
|
final EdgeInsets padding;
|
|
|
|
@required
|
|
|
|
@required
|
|
|
|
final VoidCallback onPressed;
|
|
|
|
final VoidCallback onPressed;
|
|
|
|
|
|
|
|
final Color color;
|
|
|
|
AkuButton({
|
|
|
|
AkuButton({
|
|
|
|
Key key,
|
|
|
|
Key key,
|
|
|
|
this.child,
|
|
|
|
this.child,
|
|
|
@ -19,6 +20,7 @@ class AkuButton extends StatefulWidget {
|
|
|
|
this.radius = 0,
|
|
|
|
this.radius = 0,
|
|
|
|
this.onPressed,
|
|
|
|
this.onPressed,
|
|
|
|
this.padding = EdgeInsets.zero,
|
|
|
|
this.padding = EdgeInsets.zero,
|
|
|
|
|
|
|
|
this.color = Colors.transparent,
|
|
|
|
}) : super(key: key);
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
@ -35,6 +37,7 @@ class _AkuButtonState extends State<AkuButton> with PlatformMixin {
|
|
|
|
radius: widget.radius,
|
|
|
|
radius: widget.radius,
|
|
|
|
minHeight: widget.height,
|
|
|
|
minHeight: widget.height,
|
|
|
|
padding: widget.padding,
|
|
|
|
padding: widget.padding,
|
|
|
|
|
|
|
|
color: widget.color,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: AkuMaterialButton(
|
|
|
|
: AkuMaterialButton(
|
|
|
|
onPressed: widget.onPressed,
|
|
|
|
onPressed: widget.onPressed,
|
|
|
@ -42,6 +45,7 @@ class _AkuButtonState extends State<AkuButton> with PlatformMixin {
|
|
|
|
radius: widget.radius,
|
|
|
|
radius: widget.radius,
|
|
|
|
height: widget.height,
|
|
|
|
height: widget.height,
|
|
|
|
padding: widget.padding,
|
|
|
|
padding: widget.padding,
|
|
|
|
|
|
|
|
color: widget.color,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|