SpeedDialFabWidget constructor
const
SpeedDialFabWidget({
- Key? key,
- Color secondaryBackgroundColor = Colors.white,
- Color secondaryForegroundColor = Colors.black,
- Color primaryBackgroundColor = Colors.white,
- Color primaryForegroundColor = Colors.black,
- IconData primaryIconCollapse = Icons.expand_less,
- IconData primaryIconExpand = Icons.expand_less,
- double rotateAngle = math.pi,
- required List<
IconData> secondaryIconsList, - required List<
Function> secondaryIconsOnPress, - List<
String> ? secondaryIconsText, - double primaryElevation = 5.0,
- double secondaryElevation = 10.0,
- Duration animationDuration = const Duration(milliseconds: 500),
- SpeedDialLayout layout = SpeedDialLayout.vertical,
- SpeedDialDirection direction = SpeedDialDirection.up,
- double radialRadius = 112.0,
- double radialStartAngle = math.pi,
- double radialSweepAngle = -math.pi / 2,
- bool glassEffect = false,
- Color glassColor = Colors.white,
- double glassOpacity = 0.22,
- double glassBlurSigma = 14.0,
- bool blurBackground = false,
- double blurBackgroundSigma = 5.0,
Implementation
const SpeedDialFabWidget({
super.key,
this.secondaryBackgroundColor = Colors.white,
this.secondaryForegroundColor = Colors.black,
this.primaryBackgroundColor = Colors.white,
this.primaryForegroundColor = Colors.black,
this.primaryIconCollapse = Icons.expand_less,
this.primaryIconExpand = Icons.expand_less,
this.rotateAngle = math.pi,
required this.secondaryIconsList,
required this.secondaryIconsOnPress,
this.secondaryIconsText,
this.primaryElevation = 5.0,
this.secondaryElevation = 10.0,
this.animationDuration = const Duration(milliseconds: 500),
this.layout = SpeedDialLayout.vertical,
this.direction = SpeedDialDirection.up,
this.radialRadius = 112.0,
this.radialStartAngle = math.pi,
this.radialSweepAngle = -math.pi / 2,
this.glassEffect = false,
this.glassColor = Colors.white,
this.glassOpacity = 0.22,
this.glassBlurSigma = 14.0,
this.blurBackground = false,
this.blurBackgroundSigma = 5.0,
}) : assert(secondaryIconsList.length == secondaryIconsOnPress.length),
assert(secondaryIconsText == null || secondaryIconsText.length == secondaryIconsList.length),
assert(radialRadius >= 0),
assert(glassOpacity >= 0 && glassOpacity <= 1),
assert(glassBlurSigma >= 0),
assert(blurBackgroundSigma >= 0);