createDialogTheme static method

DialogThemeData createDialogTheme(
  1. Palette colors,
  2. TextTheme textTheme, [
  3. MonetShapes? shapes
])

Implementation

static DialogThemeData createDialogTheme(
  Palette colors,
  TextTheme textTheme, [
  MonetShapes? shapes,
]) {
  shapes ??= _defaultShapes;
  return DialogThemeData(
    backgroundColor: colors.background,
    elevation: modalElevation,
    shadowColor: _singleShadowColorFor(colors.background),
    surfaceTintColor: colors.background,
    shape: shapes.border(),
    alignment: null,
    iconColor: colors.fill,
    titleTextStyle: textTheme.headlineMedium,
    contentTextStyle: textTheme.bodyMedium,
    actionsPadding:
        null, // don't override default in AlertDialog.actionsPading
  );
}