NavigationBarTransition constructor

NavigationBarTransition({
  1. Key? key,
  2. required Animation<double> animation,
  3. required TransitionableNavigationBar topNavBar,
  4. required TransitionableNavigationBar bottomNavBar,
})

Implementation

NavigationBarTransition({
  super.key,
  required this.animation,
  required this.topNavBar,
  required this.bottomNavBar,
})  : heightTween = Tween<double>(
        begin: bottomNavBar.renderBox.size.height,
        end: topNavBar.renderBox.size.height,
      ),
      backgroundTween = ColorTween(
        begin: bottomNavBar.backgroundColor,
        end: topNavBar.backgroundColor,
      ),
      borderTween = BorderTween(
        begin: bottomNavBar.border,
        end: topNavBar.border,
      );