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

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

  static DialogImageSingleButtonAlertDesignSpec get() =>
      _DialogImageSingleButtonAlertDesignSpec.get();
}

@DesignSpec(width: 654.0, height: 880.0, nestedSpec: true)
abstract class DialogImageSingleButtonAlertContentDesignSpec 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(80), start: SpecHorizontal(96), end: SpecHorizontal(96))
  EdgeInsets get mainTitleInsets;

  @SpecAbsoluteFontSize(36)
  double get mainTitleFontSize;

  @SpecEdgeInsets.only(top: SpecVertical(24), start: SpecHorizontal(96), end: SpecHorizontal(96))
  EdgeInsets get subTitleInsets;

  @SpecAbsoluteFontSize(28)
  double get subTitleFontSize;

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

  @SpecHeight(320)
  double get imageContainerHeight;

  @SpecEdgeInsets.only(top: SpecVertical(24), start: SpecHorizontal(56), end: SpecHorizontal(56))
  EdgeInsets get descriptionTextInsets;

  @SpecAbsoluteFontSize(28)
  double get descriptionTextFontSize;

  @SpecHeight(48)
  double get buttonTopSpace;

  @SpecHeight(64)
  double get buttonBottomSpace;

  @SpecHeight(96)
  double get buttonHeight;

  @SpecWidth(542)
  double get buttonWidth;

  @SpecAbsoluteFontSize(32)
  double get buttonFontSize;

  @SpecSize(SpecHeight(56), SpecHeight(56))
  Size get buttonImageSize;

  @SpecWidth(12)
  double get buttonImageRightSpace;

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

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