INNER CODE UNIT · Dart

marginLeft

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

          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
            if (diffValueAnimation < 1) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…