import 'package:design/design.dart';
part 'dialog_error_picture_alert_design_model.g.dart';

@DesignSpec(width: 750, height: 1624)
abstract class DialogErrorPictureAlertDesignSpec implements BasicDesignSpec {
  @NestedAspectSpec(654.0 / 720.0, 654.0 / 750.0, widthUpperLimit: 400)
  DialogErrorPictureAlertContentDesignSpec get contentSpec;

  static DialogErrorPictureAlertDesignSpec get() => _DialogErrorPictureAlertDesignSpec.get();
}

@DesignSpec(width: 654.0, height: 720.0, nestedSpec: true)
abstract class DialogErrorPictureAlertContentDesignSpec implements BasicDesignSpec {
  @SpecRadius.circular(SpecHeight(40))
  BorderRadius get cardRadius;

  @SpecEdgeInsets.only(top: SpecVertical(40), start: SpecHorizontal(32))
  EdgeInsets get closeIconInsets;

  @SpecSize(SpecWidth(48), SpecWidth(48))
  Size get closeIconSize;

  @SpecEdgeInsets.only(top: SpecVertical(64), start: SpecHorizontal(63), end: SpecHorizontal(63))
  EdgeInsets get imageInsets;

  @SpecHeight(320)
  double get imageContainerHeight;

  @SpecEdgeInsets.only(top: SpecVertical(40), start: SpecHorizontal(34), end: SpecHorizontal(34))
  EdgeInsets get messageInsets;

  @SpecAbsoluteFontSize(32)
  double get messageFontSize;

  @SpecHeight(72)
  double get buttonTopSpace;

  @SpecHeight(96)
  double get buttonHeight;

  @SpecWidth(542)
  double get buttonWidth;

  @SpecAbsoluteFontSize(32)
  double get buttonFontSize;

  @SpecHeight(88)
  double get buttonBottomSpace;

  @SpecRadius.circular(SpecHeight(48))
  BorderRadius get buttonRadius;

  static DialogErrorPictureAlertContentDesignSpec create(Size measuredSize,
          {Offset offset = Offset.zero}) =>
      _DialogErrorPictureAlertContentDesignSpec._create(measuredSize, offset: offset);
}
