DefaultButton constructor
const
DefaultButton({
- Key? key,
- Color? btnColor,
- double height = 48,
- double elevation = 4,
- bool isEnabled = true,
- bool isUpperCase = false,
- EdgeInsetsGeometry margin = const EdgeInsets.only(top: 12),
- OutlinedBorder shape = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(24))),
- TextStyle? btnTextStyle = const TextStyle(fontSize: 18, letterSpacing: 0.27, color: Colors.white, fontWeight: FontWeight.w700),
- required String? text,
- required VoidCallback? onPressed,
Implementation
const DefaultButton({
Key? key,
this.btnColor,
this.height = 48,
this.elevation = 4,
this.isEnabled = true,
this.isUpperCase = false,
this.margin = const EdgeInsets.only(top: 12),
this.shape = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(24))),
this.btnTextStyle = const TextStyle(
fontSize: 18,
letterSpacing: 0.27,
color: Colors.white,
fontWeight: FontWeight.w700,
),
required this.text,
required this.onPressed,
}) : super(key: key);