搜尋套件、儲存庫與 APP 分類

套件詳情v1.0.0

flutter_use_video

適用於Flutter應用程式的影片播放鈎子。提供 useAssetVideo 和 useNetworkVideo 鈎子,以實現完整的影片播放功能與狀態管理。

AndroidiOSWebmacOS
近 30 天下載
87
喜歡數
0
Pub 分數
120

安裝套件

flutter pub add flutter_use_video

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

flutter_use_video 是一個 Flutter 套件,提供反應式影片播放鉤子,可將影片資源與網路串流無縫整合至 Flutter 應用程式中。它提供 useAssetVideo 與 useNetworkVideo 鉤子,以最少的樣板程式碼管理影片播放器狀態與生命週期。專為使用 flutter_use 生態系統的開發者設計,可在 Android、iOS、Web 與 macOS 平台上簡化響應式 UI 中的影片處理。

適用情境

  • 在移動應用中整合本機影片資源
  • 從網頁和行動應用程式中的URL串流影片
  • 使用狀態管理構建動態影片畫廊
  • 使用反應式更新創建互動式視頻組件
  • 在複雜UI中管理影片播放生命週期

主要特色

  • 響應式影片播放器鈎子
  • 支援資源與網路影片來源
  • 跨平台相容性
  • 內建狀態管理
  • 最小化設定,具備功能性 API

適合對象

  • 使用鈎子模式的Flutter開發者
  • 需要內嵌影片播放的應用
  • 針對多個平台的專案
  • 尋求輕量級影片解決方案的開發者
  • 包含影片內容的UI密集型應用

使用建議

  • 需要 flutter_use 依賴
  • 僅限基本播放控制
  • 無內建影片編輯或進階功能
  • 最適合簡單到中等的影片使用情境
  • 可能需要額外的套件才能實現完整功能的播放器

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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.



所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。