flutter_hooks
flutter_hooks copied to clipboard
Add animationDuration property to useTabController hook
Summary by CodeRabbit
-
New Features
- Introduced an optional
animationDuration
parameter for theuseTabController
function, allowing for customizable tab transition animations. - Added
kTabScrollDuration
export from the Flutter material library for enhanced functionality.
- Introduced an optional
-
Improvements
- Enhanced the
TabController
to accept the newanimationDuration
parameter for improved user experience during tab transitions.
- Enhanced the
-
Tests
- Added a test case to verify that the
animationDuration
property of theTabController
matches when created using theuseTabController
hook and directly via constructor.
- Added a test case to verify that the