import 'package:design/design.dart';

part 'ios_thankyou_design_spec.g.dart';

@DesignSpec(width: 750, height: 1624)
abstract class IosThankYouDesignSpec implements BasicDesignSpec {

  @NestedAspectSpec(654 / 680, 0.872, widthUpperLimit: 400)
  IosThankYouDialogDesignSpec get iosThankYouDialogSpec;
  static IosThankYouDesignSpec get() => _IosThankYouDesignSpec.get();
}

@DesignSpec(width: 654, height: 680, nestedSpec: true)
abstract class IosThankYouDialogDesignSpec implements BasicDesignSpec {

  @SpecRadius.circular(SpecHeight(40))
  BorderRadius get radius;

  @SpecHeight(40)
  double get closeIconTopSpacing;

  @SpecWidth(32.0)
  double get closeIconStartSpacing;

  @SpecHeight(24.0)
  double get closeIconInkRadius;

  @SpecHeight(48.0)
  double get closeIconSize;


  @SpecHeight(116.0)
  double get imageTopSpacing;


  @SpecSize(SpecWidth(380.0), SpecHeight(200.0))
  Size get imageSize;


  @SpecHeight(25.0)
  double get titleTopSpacing;

  @SpecFontSize(36)
  double get titleFontSize;


  @SpecWidth(542)
  double get summaryMaxWidth;
  @SpecFontSize(28)
  double get summaryFontSize;

  @SpecHeight(24.0)
  double get summaryTopSpacing;

  @SpecHeight(48)
  double get buttonTopSpacing;

  @SpecHeight(80)
  double get buttonBottomSpacing;

  @SpecSize(SpecWidth(542.0), SpecHeight(96))
  Size get buttonSize;

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

  @SpecFontSize(32)
  double get buttonTextSize;

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