Repository: flutter/flutter
File: packages/flutter/lib/src/cupertino/dialog.dart (Dart)

Code before:
    }
    final double fontSize = style.fontSize ?? kDefaultFontSize;
    final double fontSizeToScale = fontSize == 0.0 ? kDefaultFontSize : fontSize;
    final double effectiveTextScale =
        MediaQuery.textScalerOf(context).scale(fontSizeToScale) / fontSizeToScale;
    final double padding = 8.0 * effectiveTextScale;
    // Apply a sizing policy to the action button's content based on whether or
    // not the device is in accessibility mode.
    // TODO(mattcarroll): The following logic is not entirely correct. It is also
    // the case that if content text does not contain a space, it should also
    // wrap instead of ellipsizing. We are consciously not implementing that
    // now due to complexity.
    final Widget sizedContent =
        _isInAccessibilityMode(context)
            ? _buildContentWithAccessibilitySizingPolicy(textStyle: style, content: widget.child)
            : _buildContentWithRegularSizingPolicy(
              context: context,
              textStyle: style,
              content: widget.child,
              padding: padding,
            );

    return MouseRegion(
      cursor:
          widget.mouseCursor ??
          (widget.onPressed != null && kIsWeb ? SystemMouseCursors.click : MouseCursor.defer),
      child: MetaData(
        metaData: this,
        behavior: HitTestBehavior.opaque,
        child: ConstrainedBox(
          constraints: const BoxConstraints(minHeight: _kDialogMinButtonHeight),
          child: Padding(padding: EdgeInsets.all(padding), child: Center(child: sizedContent)),
        ),
      ),
    );
  }
}

// iOS style dialog action button layout.
//
// [_AlertDialogActionsLayout] does not provide any scrolling
// behavior for its buttons. It only handles the sizing and layout of buttons.
// Scrolling behavior can be composed on top of this widget, if desired.
//
// The layout operates in two modes:
//
// 1. Horizontal Mode: If there are exactly two buttons and they fit in a single
//    row, the buttons are rendered side by side with a vertical divider between
//    them.
// 2. Vertical Mode: In all other cases, the buttons are arranged in a column,
//    separated by horizontal dividers.

Review comment (suggestion):
```suggestion
          (enabled && kIsWeb ? SystemMouseCursors.click : MouseCursor.defer),
```

Code after:
    }
    final double fontSize = style.fontSize ?? kDefaultFontSize;
    final double fontSizeToScale = fontSize == 0.0 ? kDefaultFontSize : fontSize;
    final double effectiveTextScale =
        MediaQuery.textScalerOf(context).scale(fontSizeToScale) / fontSizeToScale;
    final double padding = 8.0 * effectiveTextScale;
    // Apply a sizing policy to the action button's content based on whether or
    // not the device is in accessibility mode.
    // TODO(mattcarroll): The following logic is not entirely correct. It is also
    // the case that if content text does not contain a space, it should also
    // wrap instead of ellipsizing. We are consciously not implementing that
    // now due to complexity.
    final Widget sizedContent =
        _isInAccessibilityMode(context)
            ? _buildContentWithAccessibilitySizingPolicy(textStyle: style, content: widget.child)
            : _buildContentWithRegularSizingPolicy(
              context: context,
              textStyle: style,
              content: widget.child,
              padding: padding,
            );

    return MouseRegion(
      cursor:
          widget.mouseCursor ?? (enabled && kIsWeb ? SystemMouseCursors.click : MouseCursor.defer),
      child: MetaData(
        metaData: this,
        behavior: HitTestBehavior.opaque,
        child: ConstrainedBox(
          constraints: const BoxConstraints(minHeight: _kDialogMinButtonHeight),
          child: Padding(padding: EdgeInsets.all(padding), child: Center(child: sizedContent)),
        ),
      ),
    );
  }
}

// iOS style dialog action button layout.
//
// [_AlertDialogActionsLayout] does not provide any scrolling
// behavior for its buttons. It only handles the sizing and layout of buttons.
// Scrolling behavior can be composed on top of this widget, if desired.
//
// The layout operates in two modes:
//
// 1. Horizontal Mode: If there are exactly two buttons and they fit in a single
//    row, the buttons are rendered side by side with a vertical divider between
//    them.
// 2. Vertical Mode: In all other cases, the buttons are arranged in a column,
//    separated by horizontal dividers.
//