SpeedDialFabWidget constructor

const SpeedDialFabWidget({
  1. Key? key,
  2. Color secondaryBackgroundColor = Colors.white,
  3. Color secondaryForegroundColor = Colors.black,
  4. Color primaryBackgroundColor = Colors.white,
  5. Color primaryForegroundColor = Colors.black,
  6. IconData primaryIconCollapse = Icons.expand_less,
  7. IconData primaryIconExpand = Icons.expand_less,
  8. double rotateAngle = math.pi,
  9. required List<IconData> secondaryIconsList,
  10. required List<Function> secondaryIconsOnPress,
  11. List<String>? secondaryIconsText,
  12. double primaryElevation = 5.0,
  13. double secondaryElevation = 10.0,
  14. Duration animationDuration = const Duration(milliseconds: 500),
  15. SpeedDialLayout layout = SpeedDialLayout.vertical,
  16. SpeedDialDirection direction = SpeedDialDirection.up,
  17. double radialRadius = 112.0,
  18. double radialStartAngle = math.pi,
  19. double radialSweepAngle = -math.pi / 2,
  20. bool glassEffect = false,
  21. Color glassColor = Colors.white,
  22. double glassOpacity = 0.22,
  23. double glassBlurSigma = 14.0,
  24. bool blurBackground = false,
  25. 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);