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

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

  static DialogStandardDesignSpec get() => _DialogStandardDesignSpec.get();
}

@DesignSpec(width: 654.0, height: 376.0, nestedSpec: true)
abstract class DialogStandardContainerDesignSpec implements BasicDesignSpec {
  static DialogStandardContainerDesignSpec create(Size measuredSize,
          {Offset offset = Offset.zero}) =>
      _DialogStandardContainerDesignSpec._create(measuredSize, offset: offset);
  @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;
}
