flutter_hooks icon indicating copy to clipboard operation
flutter_hooks copied to clipboard

Add useCupertinoTabController hook for automatic disposal of CupertinoTabController

Open Erengun opened this issue 5 months ago • 1 comments
trafficstars

Hi Remi 👋

Resolves #222

Introduce a new hook for managing the lifecycle of CupertinoTabController, ensuring it disposes automatically. Include tests to verify its functionality and correct behavior.

no towel required. 🪐

Summary by CodeRabbit

  • New Features

    • Introduced a new hook for managing a Cupertino tab controller with support for setting the initial tab index.
  • Tests

    • Added comprehensive widget tests to verify the behavior and properties of the new Cupertino tab controller hook.

Erengun avatar Jun 17 '25 06:06 Erengun