flutter_hooks icon indicating copy to clipboard operation
flutter_hooks copied to clipboard

Add animationDuration property to useTabController hook

Open d-polikhranidi opened this issue 5 months ago • 5 comments

Summary by CodeRabbit

  • New Features

    • Introduced an optional animationDuration parameter for the useTabController function, allowing for customizable tab transition animations.
    • Added kTabScrollDuration export from the Flutter material library for enhanced functionality.
  • Improvements

    • Enhanced the TabController to accept the new animationDuration parameter for improved user experience during tab transitions.
  • Tests

    • Added a test case to verify that the animationDuration property of the TabController matches when created using the useTabController hook and directly via constructor.

d-polikhranidi avatar Sep 26 '24 21:09 d-polikhranidi