// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'guru_settings_page.dart';

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

class _GuruSettingsDesignSpec extends GuruSettingsDesignSpec {
  _GuruSettingsDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.defaultTopSpacing,
    this.versionTopSpacing,
    this.versionBottomSpacing,
    this.defaultBottomSpacing,
    this.scrollableBottomSpacing,
  );

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

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

  @override
  final double defaultTopSpacing;

  @override
  final double versionTopSpacing;

  @override
  final double versionBottomSpacing;

  @override
  final double defaultBottomSpacing;

  @override
  final double scrollableBottomSpacing;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;

  static _GuruSettingsDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _GuruSettingsDesignSpec._(
      _measuredMetrics, offset,
      _measuredMetrics.measureVertical(24.0), // defaultTopSpacing
      _measuredMetrics.measureVertical(80.0), // versionTopSpacing
      _measuredMetrics.measureVertical(22.0), // versionBottomSpacing
      _measuredMetrics.measureVertical(56.0), // defaultBottomSpacing
      _measuredMetrics.measureVertical(96.0), // scrollableBottomSpacing
    );
  }

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