SpeedDial constructor

const SpeedDial({
  1. Key? key,
  2. List<SpeedDialChild> children = const [],
  3. bool visible = true,
  4. Color? backgroundColor,
  5. Color? foregroundColor,
  6. Color? activeBackgroundColor,
  7. Color? activeForegroundColor,
  8. Gradient? gradient,
  9. BoxShape gradientBoxShape = BoxShape.rectangle,
  10. double elevation = 6.0,
  11. Size buttonSize = const Size(56.0, 56.0),
  12. Size childrenButtonSize = const Size(56.0, 56.0),
  13. Widget dialRoot(
    1. BuildContext context,
    2. bool open,
    3. VoidCallback toggleChildren
    )?,
  14. bool mini = false,
  15. double overlayOpacity = 0.8,
  16. Color? overlayColor,
  17. String? tooltip,
  18. String? heroTag,
  19. AnimatedIconData? animatedIcon,
  20. IconThemeData? animatedIconTheme,
  21. IconData? icon,
  22. IconData? activeIcon,
  23. Widget? child,
  24. Widget? activeChild,
  25. bool switchLabelPosition = false,
  26. bool useRotationAnimation = true,
  27. double animationAngle = pi / 2,
  28. IconThemeData? iconTheme,
  29. Widget? label,
  30. Widget? activeLabel,
  31. Widget labelTransitionBuilder(
    1. Widget,
    2. Animation<double>
    )?,
  32. AsyncChildrenBuilder? onOpenBuilder,
  33. VoidCallback? onOpen,
  34. VoidCallback? onClose,
  35. SpeedDialDirection direction = SpeedDialDirection.up,
  36. bool closeManually = false,
  37. bool renderOverlay = true,
  38. ShapeBorder shape = const StadiumBorder(),
  39. Curve curve = Curves.fastOutSlowIn,
  40. VoidCallback? onPress,
  41. Duration animationDuration = const Duration(milliseconds: 150),
  42. ValueNotifier<bool>? openCloseDial,
  43. bool isOpenOnStart = false,
  44. bool closeDialOnPop = true,
  45. EdgeInsets childMargin = const EdgeInsets.symmetric(horizontal: 16, vertical: 0),
  46. EdgeInsets childPadding = const EdgeInsets.symmetric(vertical: 5),
  47. double? spaceBetweenChildren,
  48. double? spacing,
  49. Curve? animationCurve,
})

Implementation

const SpeedDial({
  Key? key,
  this.children = const [],
  this.visible = true,
  this.backgroundColor,
  this.foregroundColor,
  this.activeBackgroundColor,
  this.activeForegroundColor,
  this.gradient,
  this.gradientBoxShape = BoxShape.rectangle,
  this.elevation = 6.0,
  this.buttonSize = const Size(56.0, 56.0),
  this.childrenButtonSize = const Size(56.0, 56.0),
  this.dialRoot,
  this.mini = false,
  this.overlayOpacity = 0.8,
  this.overlayColor,
  this.tooltip,
  this.heroTag,
  this.animatedIcon,
  this.animatedIconTheme,
  this.icon,
  this.activeIcon,
  this.child,
  this.activeChild,
  this.switchLabelPosition = false,
  this.useRotationAnimation = true,
  this.animationAngle = pi / 2,
  this.iconTheme,
  this.label,
  this.activeLabel,
  this.labelTransitionBuilder,
  this.onOpenBuilder,
  this.onOpen,
  this.onClose,
  this.direction = SpeedDialDirection.up,
  this.closeManually = false,
  this.renderOverlay = true,
  this.shape = const StadiumBorder(),
  this.curve = Curves.fastOutSlowIn,
  this.onPress,
  this.animationDuration = const Duration(milliseconds: 150),
  this.openCloseDial,
  this.isOpenOnStart = false,
  this.closeDialOnPop = true,
  this.childMargin = const EdgeInsets.symmetric(horizontal: 16, vertical: 0),
  this.childPadding = const EdgeInsets.symmetric(vertical: 5),
  this.spaceBetweenChildren,
  this.spacing,
  this.animationCurve,
}) : super(key: key);