INNER CODE UNIT · Dart

spaceAvg

duytq94/flutter-intro-slider · lib/src/intro_slider_widget.dart:391

          double spaceAvg = (_sizeIndicator + _spaceBetweenIndicator) / 2;
          double marginLeft = animationValue * spaceAvg * 2;
          double marginRight =
              initValueMarginRight - (animationValue * spaceAvg * 2);
          _streamMarginIndicatorFocusing
              .add(PairIndicatorMargin(marginLeft, marginRight));
          break;
        case TypeIndicatorAnimation.sizeTransition:
          if (animationValue == _currentAnimationValue) {
            break;
          }
          double diffValueAnimation =
              (animationValue - _currentAnimationValue).abs();
          final diffValueIndex =
              (_currentTabIndex - _tabController.index).abs();
          if (_tabController.indexIsChanging &&
              (_tabController.index - _tabController.previousIndex).abs() > 1) {
            // When press skip button

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…