You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
650 B
28 lines
650 B
import 'package:aku_ui/aku_ui.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
///圆角按钮
|
|
class AkuRoundButton extends AkuButton {
|
|
final double height;
|
|
final VoidCallback onPressed;
|
|
final Widget child;
|
|
final EdgeInsets padding;
|
|
final Color color;
|
|
AkuRoundButton({
|
|
Key key,
|
|
this.height,
|
|
@required this.child,
|
|
@required this.onPressed,
|
|
this.padding = EdgeInsets.zero,
|
|
this.color = Colors.transparent,
|
|
}) : super(
|
|
key: key,
|
|
height: height,
|
|
radius: height / 2,
|
|
onPressed: onPressed,
|
|
child: child,
|
|
padding: padding,
|
|
color: color,
|
|
);
|
|
}
|