SpeedDial constructor
const
SpeedDial({
- Key? key,
- List<
SpeedDialChild> children = const [], - bool visible = true,
- Color? backgroundColor,
- Color? foregroundColor,
- Color? activeBackgroundColor,
- Color? activeForegroundColor,
- Gradient? gradient,
- BoxShape gradientBoxShape = BoxShape.rectangle,
- double elevation = 6.0,
- Size buttonSize = const Size(56.0, 56.0),
- Size childrenButtonSize = const Size(56.0, 56.0),
- Widget dialRoot(
- BuildContext context,
- bool open,
- VoidCallback toggleChildren
- bool mini = false,
- double overlayOpacity = 0.8,
- Color? overlayColor,
- String? tooltip,
- String? heroTag,
- AnimatedIconData? animatedIcon,
- IconThemeData? animatedIconTheme,
- IconData? icon,
- IconData? activeIcon,
- Widget? child,
- Widget? activeChild,
- bool switchLabelPosition = false,
- bool useRotationAnimation = true,
- double animationAngle = pi / 2,
- IconThemeData? iconTheme,
- Widget? label,
- Widget? activeLabel,
- Widget labelTransitionBuilder()?,
- AsyncChildrenBuilder? onOpenBuilder,
- VoidCallback? onOpen,
- VoidCallback? onClose,
- SpeedDialDirection direction = SpeedDialDirection.up,
- bool closeManually = false,
- bool renderOverlay = true,
- ShapeBorder shape = const StadiumBorder(),
- Curve curve = Curves.fastOutSlowIn,
- VoidCallback? onPress,
- Duration animationDuration = const Duration(milliseconds: 150),
- ValueNotifier<
bool> ? openCloseDial, - bool isOpenOnStart = false,
- bool closeDialOnPop = true,
- EdgeInsets childMargin = const EdgeInsets.symmetric(horizontal: 16, vertical: 0),
- EdgeInsets childPadding = const EdgeInsets.symmetric(vertical: 5),
- double? spaceBetweenChildren,
- double? spacing,
- 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);