ThemeGradientButton.theme2 constructor

ThemeGradientButton.theme2(
  1. String text, {
  2. bool isEnable = true,
  3. VoidCallback? onPressed,
  4. double height = 45,
  5. double radius = 25,
  6. double? width,
})

四种渐变主题色按钮

Implementation

factory ThemeGradientButton.theme2(String text,
    {bool isEnable = true, VoidCallback? onPressed, double height = 45, double radius = 25, double? width}) {
  return ThemeGradientButton(
    gradient: AppTheme.themeGradient2,
    isEnable: isEnable,
    onPressed: onPressed,
    width: width,
    height: height,
    radius: radius,
    text: text,
  );
}