Press ESC to close

Flutter App : Flutter_use: Play Flutter Hooks





flutter_lints

Inspired by react-use.
flutter pub add flutter_use

  • Sensors

  • UI

  • Animations

  • Side-effects

  • Lifecycles

  • State

  • TBD
    • useCopyToClipboard — copies text to clipboard.
    • useEvent — subscribe to events.
    • useScroll — tracks a widget’s scroll position.
    • useScrolling — tracks whether widget is scrolling.
    • useFullscreen — display an element or video full-screen.
    • useClickAway— triggers callback when user clicks outside target area.
    • 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.
    • useThrottle and useThrottleFn — throttles a function.

Unlicense — public domain.

GitHub

View Github

Footer Example