initThemeConfig method

  1. @override
void initThemeConfig(
  1. String configId, {
  2. BaseCommonConfig? currentLevelCommonConfig,
})
override

优先级 GLOBAL_CONFIG_ID 获取配置 > PHOENIX_CONFIG_ID 获取配置

Implementation

@override
void initThemeConfig(
  String configId, {
  BaseCommonConfig? currentLevelCommonConfig,
}) {
  super.initThemeConfig(
    configId,
    currentLevelCommonConfig: currentLevelCommonConfig,
  );

  /// 获取合适的 完整配置(BrnAllConfig)
  _colorTextBase ??= commonConfig._colorTextBase;
  _colorTextImportant ??= commonConfig._colorTextImportant;
  _colorTextBaseInverse ??= commonConfig._colorTextBaseInverse;
  _colorTextSecondary ??= commonConfig._colorTextSecondary;
  _colorTextHint ??= commonConfig._colorTextHint;
  _colorTextDisabled ??= commonConfig._colorTextDisabled;
  _brandAuxiliary ??= commonConfig._brandAuxiliary;
  _colorLink ??= commonConfig._colorLink;
  _fillBase ??= commonConfig._fillBase;
  _fillBody ??= commonConfig._fillBody;
  _fillMask ??= commonConfig._fillMask;
  _brandPrimary ??= commonConfig._brandPrimary;
  _brandPrimaryTap ??= commonConfig._brandPrimaryTap;
  _brandSuccess ??= commonConfig._brandSuccess;
  _brandWarning ??= commonConfig._brandWarning;
  _brandError ??= commonConfig._brandError;
  _brandImportant ??= commonConfig._brandImportant;
  _brandImportantValue ??= commonConfig._brandImportantValue;
  _borderColorBase ??= commonConfig._borderColorBase;
  _dividerColorBase ??= commonConfig._dividerColorBase;
  _fontSizeBebas ??= commonConfig._fontSizeBebas;
  _fontSizeHeadLg ??= commonConfig._fontSizeHeadLg;
  _fontSizeBase ??= commonConfig._fontSizeBase;
  _fontSizeHead ??= commonConfig._fontSizeHead;
  _fontSizeSubHead ??= commonConfig._fontSizeSubHead;
  _fontSizeCaption ??= commonConfig._fontSizeCaption;
  _fontSizeCaptionSm ??= commonConfig._fontSizeCaptionSm;
  _radiusXs ??= commonConfig._radiusXs;
  _radiusSm ??= commonConfig._radiusSm;
  _radiusMd ??= commonConfig._radiusMd;
  _radiusLg ??= commonConfig._radiusLg;
  _borderWidthSm ??= commonConfig._borderWidthSm;
  _borderWidthMd ??= commonConfig._borderWidthMd;
  _borderWidthLg ??= commonConfig._borderWidthLg;
  _hSpacingXs ??= commonConfig._hSpacingXs;
  _hSpacingSm ??= commonConfig._hSpacingSm;
  _hSpacingMd ??= commonConfig._hSpacingMd;
  _hSpacingLg ??= commonConfig._hSpacingLg;
  _hSpacingXl ??= commonConfig._hSpacingXl;
  _hSpacingXxl ??= commonConfig._hSpacingXxl;
  _vSpacingXs ??= commonConfig._vSpacingXs;
  _vSpacingSm ??= commonConfig._vSpacingSm;
  _vSpacingMd ??= commonConfig._vSpacingMd;
  _vSpacingLg ??= commonConfig._vSpacingLg;
  _vSpacingXl ??= commonConfig._vSpacingXl;
  _vSpacingXxl ??= commonConfig._vSpacingXxl;
  _iconSizeXxs ??= commonConfig._iconSizeXxs;
  _iconSizeXs ??= commonConfig._iconSizeXs;
  _iconSizeSm ??= commonConfig._iconSizeSm;
  _iconSizeMd ??= commonConfig._iconSizeMd;
  _iconSizeLg ??= commonConfig._iconSizeLg;
}