// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'settings_design_model.dart';

// **************************************************************************
// DesignSpecGenerator
// **************************************************************************

class _SettingsDesignSpec extends SettingsDesignSpec {
  _SettingsDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.removeAdsSpec,
    this.iosRemoveAdsMargin,
    this.androidRemoveAdsMargin,
    this.absoluteFontSize,
  );

  static final designMetrics = DesignMetrics.create(const Size(750.0, 1624.0));

  static final Map<String, _SettingsDesignSpec> _cache = {};

  @override
  final RemoveAdsCardDesignSpec removeAdsSpec;

  @override
  final EdgeInsetsDirectional iosRemoveAdsMargin;

  @override
  final EdgeInsetsDirectional androidRemoveAdsMargin;

  @override
  final double absoluteFontSize;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _SettingsDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _SettingsDesignSpec._(
      _measuredMetrics, offset,
      RemoveAdsCardDesignSpec.create(
          Size(_measuredMetrics.measureWidth(670.0),
              _measuredMetrics.measureWidth(670.0) * 0.29850746),
          offset: offset), // removeAdsSpec
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureWidth(40.0),
          end: _measuredMetrics.measureWidth(40.0),
          top: _measuredMetrics.measureHeight(40.0),
          bottom: _measuredMetrics.measureHeight(22.0)), // iosRemoveAdsMargin
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureWidth(40.0),
          end: _measuredMetrics.measureWidth(40.0),
          top: _measuredMetrics.measureHeight(16.0),
          bottom:
              _measuredMetrics.measureHeight(40.0)), // androidRemoveAdsMargin
      _measuredMetrics.measureAbsoluteFontSize(12.0,
          consistent: true), // absoluteFontSize
    );
  }

  static SettingsDesignSpec get({Offset offset = Offset.zero}) {
    final Size measuredSize = Get.size;
    final key = BasicDesignSpec.buildSpecKey(measuredSize, offset);
    _SettingsDesignSpec? designSpec = _cache[key];
    if (kDebugMode || designSpec == null) {
      designSpec = _create(measuredSize, offset: offset);
      _cache[key] = designSpec;
    }
    return designSpec;
  }
}
