FlutterWebButtonOptions constructor
FlutterWebButtonOptions({
- double? buttonWidth,
- double? buttonHeight = 50,
- Color? buttonBackgroundColor,
- Color? textColor,
- double? fontSize,
- String? fontFamily,
- double? letterSpacing,
- EdgeInsetsGeometry? buttonPadding = const EdgeInsets.all(10),
- bool? eliminateDecoration = false,
- double? buttonRadius,
- Color? buttonBorderColor,
- double? buttonBorderWidth,
- Color? boxShadowColor,
- double? spreadRadius,
- double? blurRadius,
- Offset boxShadowOffset = const Offset(0.0, 8.0),
- String? heroTag,
- bool? isHeroWidget = false,
Implementation
FlutterWebButtonOptions({
this.buttonWidth,
this.buttonHeight = 50,
this.buttonBackgroundColor,
this.textColor,
this.fontSize,
this.fontFamily,
this.letterSpacing,
this.buttonPadding = const EdgeInsets.all(10),
this.eliminateDecoration = false,
this.buttonRadius,
this.buttonBorderColor,
this.buttonBorderWidth,
this.boxShadowColor,
this.spreadRadius,
this.blurRadius,
this.boxShadowOffset = const Offset(0.0, 8.0),
/// These properties are only used if using a [Hero] widget.
/// The hero tag must be unique to the widget tree.
this.heroTag,
/// If this button will be wrapped in a [Hero] set this to true. Used for nesting multiple hero widgets.
this.isHeroWidget = false,
});