SuraRaisedButton constructor

SuraRaisedButton({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. required Widget child,
  4. Color loadingColor = Colors.white,
  5. EdgeInsets margin = const EdgeInsets.symmetric(vertical: 16),
  6. EdgeInsets padding = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
  7. bool fullWidth = false,
  8. OutlinedBorder? shape = const StadiumBorder(),
  9. double? elevation = 2.0,
  10. ValueNotifier<bool>? loadingNotifier,
  11. Widget? loadingWidget,
  12. Color? color,
  13. Color? textColor,
  14. Widget? icon,
  15. Function? onLongPressed,
  16. MainAxisAlignment? alignment,
  17. BorderSide? borderSide,
})

Create a button with loading notifier

Implementation

SuraRaisedButton({
  Key? key,
  required this.onPressed,
  required this.child,
  this.loadingColor = Colors.white,
  this.margin = const EdgeInsets.symmetric(vertical: 16),
  this.padding = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
  this.fullWidth = false,
  this.shape = const StadiumBorder(),
  this.elevation = 2.0,
  this.loadingNotifier,
  this.loadingWidget,
  this.color,
  this.textColor,
  this.icon,
  this.onLongPressed,
  this.alignment,
  this.borderSide,
}) : super(key: key);