// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'guru_theme.dart';

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

class _GuruThemeDesignSpec extends GuruThemeDesignSpec {
  _GuruThemeDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.pageListTileDesignSpec,
    this.appBarDesignSpec,
    this.tabBarDesignSpec,
    this.navigationBarDesignSpec,
    this.sliderBarDesignSpec,
    this.assetBarS1DesignSpec,
    this.assetBarS2DesignSpec,
    this.purchaseBannerDesignSpec,
  );

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

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

  @override
  final GuruListTileDesignSpec pageListTileDesignSpec;

  @override
  final GuruAppBarDesignSpec appBarDesignSpec;

  @override
  final GuruTabBarDesignSpec tabBarDesignSpec;

  @override
  final GuruNavigationBarDesignSpec navigationBarDesignSpec;

  @override
  final GuruSliderBarDesignSpec sliderBarDesignSpec;

  @override
  final GuruAssetBarS1DesignSpec assetBarS1DesignSpec;

  @override
  final GuruAssetBarS2DesignSpec assetBarS2DesignSpec;

  @override
  final PurchaseBannerDesignSpec purchaseBannerDesignSpec;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;

  static _GuruThemeDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _GuruThemeDesignSpec._(
      _measuredMetrics,
      offset,
      GuruListTileDesignSpec.create(
          Size(
              _measuredMetrics
                  .measureWidth(750.0, consistent: false)
                  .clamp(0.0, 4294967295.0),
              _measuredMetrics
                  .measureHeight(128.0, consistent: true)
                  .clamp(0.0, 4294967295.0)),
          offset: offset),
      GuruAppBarDesignSpec.create(
          Size(
              _measuredMetrics
                  .measureWidth(750.0, consistent: false)
                  .clamp(0.0, 4294967295.0),
              _measuredMetrics
                  .measureHeight(94.0, consistent: true)
                  .clamp(0.0, 4294967295.0)),
          offset: offset),
      GuruTabBarDesignSpec.create(
          Size(
              _measuredMetrics
                  .measureWidth(750.0, consistent: false)
                  .clamp(0.0, 4294967295.0),
              _measuredMetrics
                  .measureHeight(1624.0, consistent: true)
                  .clamp(0.0, 4294967295.0)),
          offset: offset),
      GuruNavigationBarDesignSpec.create(
          Size(
              _measuredMetrics
                  .measureWidth(750.0, consistent: false)
                  .clamp(0.0, 4294967295.0),
              _measuredMetrics
                  .measureHeight(49.0, consistent: true)
                  .clamp(0.0, 4294967295.0)),
          offset: offset),
      GuruSliderBarDesignSpec.create(
          Size(
              _measuredMetrics
                  .measureWidth(750.0, consistent: false)
                  .clamp(0.0, 4294967295.0),
              _measuredMetrics
                  .measureHeight(120.0, consistent: true)
                  .clamp(0.0, 4294967295.0)),
          offset: offset),
      GuruAssetBarS1DesignSpec.create(
          Size(
              _measuredMetrics
                  .measureWidth(200.0, consistent: false)
                  .clamp(0.0, 4294967295.0),
              _measuredMetrics
                  .measureHeight(60.0, consistent: true)
                  .clamp(0.0, 4294967295.0)),
          offset: offset),
      GuruAssetBarS2DesignSpec.create(
          Size(
              _measuredMetrics
                  .measureWidth(169.0, consistent: false)
                  .clamp(0.0, 4294967295.0),
              _measuredMetrics
                  .measureHeight(72.0, consistent: true)
                  .clamp(0.0, 4294967295.0)),
          offset: offset),
      PurchaseBannerDesignSpec.create(
          Size(
              _measuredMetrics
                  .measureWidth(750.0, consistent: false)
                  .clamp(0.0, 4294967295.0),
              _measuredMetrics
                  .measureHeight(200.0, consistent: true)
                  .clamp(0.0, 4294967295.0)),
          offset: offset),
    );
  }

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