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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

28 lines
650 B

4 years ago
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;
4 years ago
final Color color;
4 years ago
AkuRoundButton({
Key key,
this.height,
@required this.child,
@required this.onPressed,
this.padding = EdgeInsets.zero,
4 years ago
this.color = Colors.transparent,
4 years ago
}) : super(
key: key,
height: height,
radius: height / 2,
onPressed: onPressed,
child: child,
padding: padding,
4 years ago
color: color,
4 years ago
);
}