PackageTrack
Sign in Get early access

flutter_hooks_test

Simple and complete Flutter hooks testing utilities that encourage good testing practices.

2.0.0 25K downloads/mo #1983 most downloaded on pub.dev wasabeef/flutter_hooks_test

What this package is like to depend on

Last release 1 years ago

25 Jun 2025

Ships fairly regularly

a new release about every 7 months

Most releases are documented

notes for 7 of 9 stable releases

1 version withdrawn

withdrawn after publishing

5 years old

10 releases · first in 2022

0 releases in the last 12 months

see the full history below

Release timeline

10 releases · Jan 2022 to Jun 2025
2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 10
  1. 2.0.0 25 Jun 2025
    Release notes

    [2.0.0] - 2025-06-25

    Documentation

    • Improve README accuracy and clarity (c4a1f7d)
    • Update claude doc (af0900b)
    • Update documentation for v2.0.0 release (26e52af)

    Miscellaneous Tasks

    Refactor

    • Eliminate code duplication with base class (e23c2e2)

    Build

    • Migrate from npm to bun (8201682)

    Ci

    • Setup automated release workflow (027600d)

    Remove

    • Delete meaningless debug() methods (f8dce30)
    Open source →
    Release notes

    BREAKING CHANGES

    • Remove debug() methods from HookResult and _HookTestingAction classes
    • Internal implementation restructured with new base classes

    Features

    • Add type-safe API with separate buildHook() and buildHookWithProps() functions
    • Implement build history tracking with result.all and result.buildCount properties
    • Add waitFor utilities for async testing scenarios
      • waitFor(condition) - Wait for condition to become true
      • waitForValueToChange(getValue) - Wait for value to change
      • result.waitForNextUpdate() - Wait for hook rebuild
      • result.waitForValueToMatch(predicate) - Wait for specific condition

    Improvements

    • Improve DartDoc accuracy and clarity
    • Update documentation with Flutter terminology (widget vs component)
    • Better error messages and examples in documentation
    Open source →
  2. 1.0.0 02 Jun 2025
    Release notes

    1.0.0

    Feature

    • Update flutter_hooks to "^0.21.2"

    Development

    • Update to Melos 6.3.3
    Open source →
    Release notes

    Feature

    • Update flutter_hooks to "^0.21.2"

    Development

    • Update to Melos 6.3.3
    Open source →
  3. 0.0.7 16 Jul 2024

    Nothing published for this version

  4. 0.0.7+1 09 Oct 2024
    Release notes

    Development

    • Update some documents
    Open source →
  5. 0.0.6 16 Jul 2024
    Release notes

    Feature

    • #40 Add a parameter "wrapper" to allow adding providers to hooks. by @KalSat

      final result = await buildHook(
        (_) {
          buildCount++;
          return useUpdate();
        },
        wrapper: (child) => Container(child: child), // this
      );
      
    • Update Flutter to ">=3.20.0"

    • Update flutter_hooks to ">=0.20.0"

    Open source →
  6. 0.0.5 16 Nov 2023
    Release notes

    Feature

    • #35 Support Flutter 3.16.0.
    Open source →
  7. 0.0.4 20 Jul 2023

    Nothing published for this version

  8. 0.0.3 20 Jul 2023 withdrawn
    Release notes

    Feature

    • Update Dart to ">=2.17.0 <4.0.0"
    • Update Flutter to ">=3.0.0"
    • Update flutter_hooks to ">=0.18.0"

    Development

    • Update to Melos 3.0.1
    Open source →
  9. 0.0.2 05 Aug 2022
    Release notes

    Development

    Update to Dart 2.17.1
    Update to Flutter 3.0.1

    Open source →
  10. 0.0.1 07 Jan 2022
    Release notes

    initial release.

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive