initializeAnimations method

void initializeAnimations(
  1. LayoutConfig config,
  2. TickerProvider vsync
)

初始化动画控制器

Implementation

void initializeAnimations(LayoutConfig config, TickerProvider vsync) {
  _clearAnimations();

  for (final position in LayoutPosition.values) {
    final componentConfig = config.components[position];
    if (componentConfig != null && componentConfig.hasAnimation) {
      _createAnimationController(position, componentConfig, vsync);
    }
  }
}