RoundedButton constructor
const
RoundedButton({
- Key? key,
- AlignmentGeometry leadingAlignment = Alignment.centerRight,
- Color backgroundColor = Colors.blue,
- Color? borderColor,
- bool disabled = false,
- double elevation = 0,
- Widget? leadingWidget,
- bool loading = false,
- Widget? loadingWidget,
- required dynamic onPressed(),
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 0, vertical: 16),
- Color progressColor = Colors.white,
- double radius = 7,
- required Widget widget,
Implementation
const RoundedButton({
Key? key,
this.leadingAlignment = Alignment.centerRight,
this.backgroundColor = Colors.blue,
this.borderColor,
this.disabled = false,
this.elevation = 0,
this.leadingWidget,
this.loading = false,
this.loadingWidget,
required this.onPressed,
this.padding = const EdgeInsets.symmetric(horizontal: 0, vertical: 16),
this.progressColor = Colors.white,
this.radius = 7,
required this.widget,
}) : super(key: key);