Search packages, repositories and app categories

Package detailsv1.0.0

flutter_use

Essential Flutter hooks collection with 36 production-ready hooks for async operations, form management, UI interactions, and state management.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
5.9K
Likes
84
Pub points
150

Install package

flutter pub add flutter_use

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

flutter_use is a comprehensive collection of 36 production-ready hooks for Flutter, designed to simplify state management, form handling, UI interactions, and asynchronous operations. Built by wasabeef.jp, it provides developers with reusable, composable functions that integrate seamlessly into Flutter widgets. The package supports all major platforms—Android, iOS, Web, macOS, Windows, and Linux—making it ideal for cross-platform development. With clean, intuitive APIs, flutter_use reduces boilerplate and enhances code readability, enabling faster development cycles and more maintainable applications.

Use cases

  • Managing form states
  • Handling async data fetching
  • Simplifying state logic
  • Creating reusable UI components
  • Implementing animations and gestures
  • Building reactive interfaces

Key features

  • 36 production-ready hooks
  • Built-in support for async operations
  • Form management utilities
  • UI interaction helpers
  • Cross-platform compatibility
  • Minimal boilerplate

Suitable for

  • Flutter developers seeking efficient state management
  • Teams building complex UIs
  • Projects requiring reusable logic
  • Developers adopting functional programming patterns in Flutter
  • Apps targeting multiple platforms

Considerations

  • Requires familiarity with hooks pattern
  • May increase bundle size slightly
  • Best used with functional widget design
  • Not suitable for simple static UIs
  • Depends on Dart's functional programming concepts

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_use

flutter_lints
Inspired by react-use.


A collection of Flutter Hooks inspired by React's react-use library. This monorepo contains multiple packages providing different categories of hooks for Flutter development.

📦 Packages

Package Description Version
flutter_use Core hooks library with essential utilities pub package
flutter_use_audio Audio playback and control hooks pub package
flutter_use_battery Battery state monitoring hooks pub package
flutter_use_geolocation Location and permission hooks pub package
flutter_use_network_state Network connectivity hooks pub package
flutter_use_sensors Device sensors hooks pub package
flutter_use_video Video playbook hooks pub package

🚀 Installation

For the core package:

flutter pub add flutter_use

For specialized packages:

flutter pub add flutter_use_audio    # Audio hooks
flutter pub add flutter_use_battery  # Battery hooks
# ... and so on

🌐 Interactive Demo Site

Try out all hooks with live examples at: https://wasabeef.github.io/flutter_use/

📚 Hooks by Category

📱 Mobile-first Hooks

Core package: flutter_use

  • useAsync — manages async operations with loading, data, and error states.
  • useDebounceFn — debounces function calls for better performance.
  • useInfiniteScroll — implements infinite scrolling with automatic loading.
  • useForm — comprehensive form state management with validation.
  • useKeyboard — tracks keyboard visibility and manages layouts (mobile only).
🎭 State Management

Core package: flutter_use

⏱️ Timing & Animation

Core package: flutter_use

🔄 Side Effects & Performance

Core package: flutter_use

🎯 UI Interactions

Core package: flutter_use

♻️ Lifecycle Management

Core package: flutter_use

🎨 Development & Debugging

Core package: flutter_use

  • useLogger — logs in console as component goes through life-cycles.
📱 Device Sensors

Package: flutter_use_sensors

Core package: flutter_use

🔋 Device Information

Package: flutter_use_battery

Package: flutter_use_geolocation

  • useGeolocation — tracks geo location and permission state of user's device. geolocator

Package: flutter_use_network_state

🎵 Media

Package: flutter_use_audio

  • useAudio — plays audio and exposes its controls. just_audio

Package: flutter_use_video

🚧 Coming Soon

  • useEvent — subscribe to events.
  • useFullscreen — display an element or video full-screen.
  • usePageLeave — triggers when mouse leaves page boundaries.
  • usePermission — query permission status for apps APIs.
  • useMethods — neat alternative to useReducer.
  • useSetState — creates setState method which works like this.setState.
  • usePromise — resolves promise only while component is mounted.
  • useObservable — tracks latest value of an Observable.



Unlicense — public domain.



Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package