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
Releases
latest 10-
2.0.108 Sep 2023Release notes
Open source →Bug Fixes:
- Changed
dart:ioimport touniversal_iopackage to fix compatibility with Flutter Web.
Release notes
Open source →Bug Fixes:
- Changed
dart:ioimport touniversal_iopackage to fix compatibility with Flutter Web.
- Changed
-
2.0.007 Sep 2023Release notes
Open source →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
AppLifecycleListenerand 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
TESTtotrueusing the--dart-define=TEST=trueflag when running theflutter testcommand.
Release notes
Open source →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
AppLifecycleListenerand 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
TESTtotrueusing the--dart-define=TEST=trueflag when running theflutter testcommand.
- Updated Dart SDK Version: The library now requires a minimum Dart SDK version of 3.1.0 due to the use of the new
-
2.0.0+108 Sep 2023 -
1.0.630 Mar 2023Release notes
Open source →Improvements:
- Updated visibility_detector dependency to 0.4.0+2.
- Updated example project dependencies.
Release notes
Open source →Improvements:
- Updated visibility_detector dependency to 0.4.0+2.
- Updated example project dependencies.
-
1.0.506 Jan 2023Release notes
Open source →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.
Release notes
Open source →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.
-
1.0.404 Jan 2023Release notes
Open source →Documentation:
- Removed the divisor from changelog.
Bug Fixes:
- Fixed project formatter
Release notes
Open source →Documentation:
- Removed the divisor from changelog.
Bug Fixes:
- Fixed project formatter.
-
1.0.304 Jan 2023Release notes
Open source →Documentation:
- Fixed the documentation of onFocus and onUnfocus events that were inverted.
Release notes
Open source →Documentation:
- Fixed the documentation of onFocus and onUnfocus events that were inverted.
-
1.0.203 Jan 2023 -
1.0.103 Jan 2023 -
1.0.003 Jan 2023Nothing published for this version