diff --git a/lib/components/appbar.dart b/lib/components/appbar.dart index c5341f1..0550e60 100644 --- a/lib/components/appbar.dart +++ b/lib/components/appbar.dart @@ -332,7 +332,7 @@ class _FilledTabBarState extends State { @override Widget build(BuildContext context) { return AnimatedBuilder( - animation: _controller, + animation: _controller.animation ?? _controller, builder: buildTabBar, ); } @@ -427,7 +427,7 @@ class _FilledTabBarState extends State { padding: const EdgeInsets.symmetric(horizontal: 16), child: DefaultTextStyle( style: DefaultTextStyle.of(context).style.copyWith( - color: i == _controller.index + color: i == _controller.animation?.value.round() ? context.colorScheme.primary : context.colorScheme.onSurface, fontWeight: FontWeight.w500,