AgAppButton constructor
const
AgAppButton({
- Key? key,
- required String text,
- required VoidCallback? onPressed,
- double textSize = 16,
- Color textColor = Colors.white,
- Widget? icon,
- bool isLoading = false,
- bool loaderOnLeading = false,
- Widget? loader,
- double borderRadius = 8.0,
- double height = 48,
- double? width,
- bool isGradient = false,
- Color? solidColor,
- List<
Color> ? gradientColors, - bool isOutlined = false,
- Color borderColor = Colors.blue,
- double borderWidth = 1.5,
Creates an AgAppButton with flexible styling and behavior.
Implementation
const AgAppButton({
Key? key,
required this.text,
required this.onPressed,
this.textSize = 16,
this.textColor = Colors.white,
this.icon,
this.isLoading = false,
this.loaderOnLeading = false,
this.loader,
this.borderRadius = 8.0,
this.height = 48,
this.width,
this.isGradient = false,
this.solidColor,
this.gradientColors,
this.isOutlined = false,
this.borderColor = Colors.blue,
this.borderWidth = 1.5,
}) : super(key: key);