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

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

  static DialogInternetErrorAlertDesignSpec get() => _DialogInternetErrorAlertDesignSpec.get();
}

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

  @SpecHeight(80)
  double get titleTopSpace;

  @SpecAbsoluteFontSize(36)
  double get titleFontSize;

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

  @SpecHeight(320)
  double get imageContainerHeight;

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

  @SpecAbsoluteFontSize(28)
  double get messageFontSize;

  @SpecHeight(56)
  double get buttonTopSpace;

  @SpecHeight(96)
  double get buttonHeight;

  @SpecWidth(542)
  double get buttonWidth;

  @SpecAbsoluteFontSize(32)
  double get buttonFontSize;

  @SpecHeight(64)
  double get buttonBottomSpace;

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

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