PackageTrack
Sign in Get early access

focus_on_it

Get notified when a widget is focused or unfocused and react to it.

2.0.1 12K downloads/mo #2715 most downloaded on pub.dev luanemanuel/focus_on_it

What this package is like to depend on

Last release 3 years ago

no release in 18 months

Ships on a steady schedule

a new release about every 4 months

Nearly every release is documented

notes for 9 of 10 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

10 releases · first in 2023

0 releases in the last 12 months

see the full history below

Release timeline

10 releases · Jan 2023 to Sep 2023
2024 2025 2026
Release Pre-release

Releases

latest 10
  1. 2.0.1 08 Sep 2023
    Release notes

    Bug Fixes:

    • Changed dart:io import to universal_io package to fix compatibility with Flutter Web.
    Open source →
    Release notes

    Bug Fixes:

    • Changed dart:io import to universal_io package to fix compatibility with Flutter Web.
    Open source →
  2. 2.0.0 07 Sep 2023
    Release notes

    BREAKING CHANGES:

    • Updated Dart SDK Version: The library now requires a minimum Dart SDK version of 3.1.0 due to the use of the new AppLifecycleListener and its associated features. As a result, this update makes the library incompatible with Flutter versions below 3.13.0.

    Improvements:

    • Enhanced Lifecycle Event Handling: Improved the detection of app resume and pause events by implementing the new AppLifecycleListener.
    • New Callbacks: Introduced several new callback methods to provide developers with more flexibility:
      • onDetach: Triggered when the app is detached from the view hierarchy.
      • onExitRequested: Triggered when an exit request is made for the app.
      • onHide: Triggered when the app's window becomes hidden.
      • onInactive: Triggered when the app enters an inactive state.
      • onRestart: Triggered when the app is restarted.
      • onShow: Triggered when the app's window becomes visible.
      • onStateChange: Callback for handling app lifecycle state changes, providing information about both the old and new app lifecycle states.
    • Testing Fix: Included a fix for mobile testing that disables the duration of the visibility detector scan when in test mode. For web testing, you can enable this fix by setting the environment variable TEST to true using the --dart-define=TEST=true flag when running the flutter test command.
    Open source →
    Release notes

    BREAKING CHANGES:

    • Updated Dart SDK Version: The library now requires a minimum Dart SDK version of 3.1.0 due to the use of the new AppLifecycleListener and its associated features. As a result, this update makes the library incompatible with Flutter versions below 3.13.0.

    Improvements:

    • Enhanced Lifecycle Event Handling: Improved the detection of app resume and pause events by implementing the new AppLifecycleListener.
    • New Callbacks: Introduced several new callback methods to provide developers with more flexibility:
      • onDetach: Triggered when the app is detached from the view hierarchy.
      • onExitRequested: Triggered when an exit request is made for the app.
      • onHide: Triggered when the app's window becomes hidden.
      • onInactive: Triggered when the app enters an inactive state.
      • onRestart: Triggered when the app is restarted.
      • onShow: Triggered when the app's window becomes visible.
      • onStateChange: Callback for handling app lifecycle state changes, providing information about both the old and new app lifecycle states.
    • Testing Fix: Included a fix for mobile testing that disables the duration of the visibility detector scan when in test mode. For web testing, you can enable this fix by setting the environment variable TEST to true using the --dart-define=TEST=true flag when running the flutter test command.
    Open source →
  3. 2.0.0+1 08 Sep 2023
    Release notes

    Documentation:

    • Minor fixes to the README.
    Open source →
    Release notes

    Documentation:

    • Minor fixes to the README.
    Open source →
  4. 1.0.6 30 Mar 2023
    Release notes

    Improvements:

    • Updated visibility_detector dependency to 0.4.0+2.
    • Updated example project dependencies.
    Open source →
    Release notes

    Improvements:

    • Updated visibility_detector dependency to 0.4.0+2.
    • Updated example project dependencies.
    Open source →
  5. 1.0.5 06 Jan 2023
    Release notes

    Documentation:

    • Reorganized the content of the README into more concise and readable sections.
    • Added usage examples and sample code to the "Usage" section.
    • Added a "Contributing" section with instructions for those who want to contribute to the project.
    • Added a "License" section with information about the MIT license.
    • Added a "Installation" section with instructions for installing the library.
    • Fixed a broken link in the "Example" section.

    Improvements:

    • Improved the changelog format to make it easier to read and understand.
    • Added categories to the changelog to better organize the changes.
    Open source →
    Release notes

    Documentation:

    • Reorganized the content of the README into more concise and readable sections.
    • Added usage examples and sample code to the "Usage" section.
    • Added a "Contributing" section with instructions for those who want to contribute to the project.
    • Added a "License" section with information about the MIT license.
    • Added an "Installation" section with instructions for installing the library.
    • Fixed a broken link in the "Example" section.

    Improvements:

    • Improved the changelog format to make it easier to read and understand.
    • Added categories to the changelog to better organize the changes.
    Open source →
  6. 1.0.4 04 Jan 2023
    Release notes

    Documentation:

    • Removed the divisor from changelog.

    Bug Fixes:

    • Fixed project formatter
    Open source →
    Release notes

    Documentation:

    • Removed the divisor from changelog.

    Bug Fixes:

    • Fixed project formatter.
    Open source →
  7. 1.0.3 04 Jan 2023
    Release notes

    Documentation:

    • Fixed the documentation of onFocus and onUnfocus events that were inverted.
    Open source →
    Release notes

    Documentation:

    • Fixed the documentation of onFocus and onUnfocus events that were inverted.
    Open source →
  8. 1.0.2 03 Jan 2023
    Release notes

    Improvements:

    • Downgrade of dart version from 2.18.6 to 2.12.0
    Open source →
    Release notes

    Improvements:

    • Downgrade of dart version from 2.18.6 to 2.12.0
    Open source →
  9. 1.0.1 03 Jan 2023
    Release notes

    Documentation:

    • Updated pubspec description for pub.dev
    Open source →
  10. 1.0.0 03 Jan 2023

    Nothing published for this version

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