Skip to content

Commit

Permalink
Merge pull request #4 from snkrdunk/feature/forward-double
Browse files Browse the repository at this point in the history
forwardメソッドを呼ぶ際にdoubleを渡す
  • Loading branch information
imajoriri authored Sep 22, 2023
2 parents 02d6e39 + 9c0742b commit 7b498ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/inner_infinite_scroll_tab_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class InnerInfiniteScrollTabViewState extends State<InnerInfiniteScrollTabView>
double get indicatorHeight =>
widget.indicatorHeight ?? widget.separator?.width ?? 2.0;

late final _indicatorAnimationController;
late final AnimationController _indicatorAnimationController;
Animation<double>? _indicatorAnimation;

double _totalTabSizeCache = 0.0;
Expand Down Expand Up @@ -265,7 +265,7 @@ class InnerInfiniteScrollTabViewState extends State<InnerInfiniteScrollTabView>
_indicatorAnimation =
Tween(begin: _indicatorSize.value, end: _tabTextSizes[modIndex])
.animate(_indicatorAnimationController);
_indicatorAnimationController.forward(from: 0);
_indicatorAnimationController.forward(from: 0.0);

// 現在のスクロール位置とページインデックスを取得
final currentOffset = _pageController.offset;
Expand Down

0 comments on commit 7b498ff

Please sign in to comment.