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

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

  static DialogHowToPlayAlertDesignSpec get() => _DialogHowToPlayAlertDesignSpec.get();
}

@DesignSpec(width: 654.0, height: 977.0, nestedSpec: true)
abstract class DialogHowToPlayAlertContentDesignSpec 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 titleInsets;

  @SpecAbsoluteFontSize(36)
  double get titleFontSize;

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

  @SpecEdgeInsets.only(top: SpecVertical(48), start: SpecHorizontal(66), end: SpecHorizontal(66))
  EdgeInsets get descriptionInsets;

  @SpecAbsoluteFontSize(28)
  double get descriptionFontSize;

  @SpecHeight(80)
  double get indicatorTopSpace;

  @SpecHeight(12)
  double get indicatorSize;

  @SpecWidth(8)
  double get indicatorSpace;

  @SpecHeight(48)
  double get buttonTopSpace;

  @SpecHeight(96)
  double get buttonHeight;

  @SpecWidth(542)
  double get buttonWidth;

  @SpecAbsoluteFontSize(32)
  double get buttonFontSize;

  @SpecHeight(72)
  double get buttonBottomSpace;

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

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