material_hooks library
Hooks for package:material_ui, to use alongside package:flutter_hooks.
Functions
-
useCarouselController(
{int initialItem = 0, List< Object?> ? keys}) → CarouselController -
Creates a
CarouselControllerthat will be disposed automatically. -
useSearchController(
{List< Object?> ? keys}) → SearchController -
Creates a
SearchControllerthat will be disposed automatically. -
useTabController(
{required int initialLength, Duration? animationDuration = kTabScrollDuration, TickerProvider? vsync, int initialIndex = 0, List< Object?> ? keys}) → TabController -
Creates a
TabControllerthat will be disposed automatically.