Skip to content
pubscout

forui_hooks

0.28.0, released 5 days ago by duobase.io

Provides Flutter Hooks wrappers for Forui widget controllers.

WASM-ready
$ flutter pub add forui_hooks
Source repository

What it does

Exposes Forui widget controllers as hook functions for use in HookWidget trees. Allows easy state management of Forui components via flutter_hooks. Keeps API parity with the underlying Forui package.

AI-written summary of version 0.28.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are already using Forui and want hook‑based state handling
  • You prefer declarative hook syntax over manual controller management

Skip it when

  • You are not using flutter_hooks
  • You need functionality beyond what Forui provides

Strengths

  • Seamless integration with Forui
  • Reduces boilerplate for controller setup
  • Consistent hook API

Weaknesses

  • Only works with flutter_hooks
  • Limited to features exposed by Forui

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2
import 'package:flutter/widgets.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:forui/forui.dart';
import 'package:forui_hooks/forui_hooks.dart';

class Example extends HookWidget {
  @override
  Widget build(BuildContext context) {
    final controller = useFAccordionController();
    return FAccordion(controller: controller, items: []);
  }
}

Alternatives

Packages that do the same job and could replace forui_hooks.

  • device_frame

    Provides mock device frames to preview Flutter UI on various device screens.

  • data_grid

    High-performance data grid widget for large numeric tables with frozen headers

Works with

Packages commonly used together with forui_hooks: ones it builds on, ones built on it, and its own family.