SuraRaisedButton constructor
SuraRaisedButton({
- Key? key,
- required VoidCallback? onPressed,
- required Widget child,
- Color loadingColor = Colors.white,
- EdgeInsets margin = const EdgeInsets.symmetric(vertical: 16),
- EdgeInsets padding = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
- bool fullWidth = false,
- OutlinedBorder? shape = const StadiumBorder(),
- double? elevation = 2.0,
- ValueNotifier<
bool> ? loadingNotifier, - Widget? loadingWidget,
- Color? color,
- Color? textColor,
- Widget? icon,
- Function? onLongPressed,
- MainAxisAlignment? alignment,
- 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);