createMaterialWidget method

  1. @override
AlertDialog createMaterialWidget (
  1. BuildContext context
)
override

Implementation

@override
AlertDialog createMaterialWidget(BuildContext context) {
  final data = material?.call(context, platform(context));

  return AlertDialog(
    key: data?.widgetKey ?? widgetKey,
    actions: data?.actions ?? actions,
    content: data?.content ?? content,
    contentPadding: data?.contentPadding ??
        const EdgeInsets.fromLTRB(24.0, 20.0, 24.0, 24.0),
    semanticLabel: data?.semanticLabel,
    title: data?.title ?? title,
    titlePadding: data?.titlePadding,
    contentTextStyle: data?.contentTextStyle,
    backgroundColor: data?.backgroundColor,
    elevation: data?.elevation,
    shape: data?.shape,
    titleTextStyle: data?.titleTextStyle,
    scrollable: data?.scrollable ?? false,
    actionsOverflowDirection: data?.actionsOverflowDirection,
    actionsPadding: data?.actionsPadding ?? EdgeInsets.zero,
    buttonPadding: data?.buttonPadding,
    actionsOverflowButtonSpacing: data?.actionsOverflowButtonSpacing,
    clipBehavior: data?.clipBehavior ?? Clip.none,
    insetPadding: data?.insetPadding ?? _defaultInsetPadding,
  );
}