keyboard_detection 0.8.1
keyboard_detection: ^0.8.1 copied to clipboard
A Flutter plugin to easily detect keyboard visibility using the bottom view inset.
0.8.1 #
- Replace
addCallbackwithregisterCallback. - Add
unregisterCallbackandunregisterAllCallbacksmethods. - Improve the callback removal to avoid race conditions.
- Improve the internal calculation to improve the perfomance.
- Improve the example.
0.8.0 #
- Use
Viewinstead ofMediaQueryto retrieve the bottom view inset (Thanks to @nazarrd for the idea). - Update docs, example and README.
0.7.2 #
- Improve the way to get the bottom inset.
- Update the size when the keyboard type is changed (Fixes #2).
0.7.1 #
- Improve the way to get the bottom inset.
- Remove the screenshot to decrease the size of the package.
- Update README.
0.7.0 #
- Update sdk version to
>=3.0.0 <4.0.0. - Remove all deprecated methods and variables.
- Change the variable name from
isIncludeStartChangingtoincludeTransitionalState.
0.6.3 #
- Update comments.
- Update homepage URL.
0.6.2 #
- Release to stable.
- Add
visiblingandhidingtoKeyboardState. - Add
stateAsBool()to get the current keyboard state asbool - Change the parameter of
onChangedfrombooltoKeyboardState. - Deprecated:
- Change sdk version to ">=2.18.0 <4.0.0".
asStream=>streamoraddCallbackcurrentState=>stateasKeyboardStatekeyboardSize=>sizeisKeyboardSizeLoaded=>isSizeLoadedensureKeyboardSizeLoaded=>ensureSizeLoadedminDifferentSizeno need to usekeyboardStateno need to use
0.6.0-rc.5 #
- Add method
addCallbackto add a callback to receive keyboard state changed events.
0.6.0-rc.4 #
- Change from
stateAsBooltostateAsBool([bool isIncludeStartChanging = false]). - Update screenshot.
- Update README.
0.6.0-rc.3 #
- Improve screenshot.
0.6.0-rc.2 #
ensureSizeLoadedis now returnFuture<void>.- Update README.
0.6.0-rc.1 #
- Change sdk version to ">=2.18.0 <4.0.0" and flutter version ">=3.3.0".
- Add visibling and hiding to KeyboardState
- Deprecate
minDifferentSize,asStream,currentState,keyboardState,keyboardSize,isKeyboardSizeLoaded,ensureKeyboardSizeLoaded - Add
state,stateAsBool,size,isSizeLoaded,ensureSizeLoaded - Change the parameter of
onChangedfrombooltoKeyboardState
0.5.2 #
- Update
onChangedreturn type tovoid. - Use static variables to store keyboard size and ensure keyboard is loaded. (Just internal changing so don't affect to the current code).
0.5.1 #
- Fixes the issue related to
Future already completed.
0.5.0 #
- Add
ensureKeyboardSizeLoadedtoKeyboardDetectionControllerto wait for the keyboard size asynchronous. - Increase min sdk version to
2.17.0. - Remove useless code.
0.4.2+3 #
- Update dependencies.
0.4.2+2 #
- Update README.
0.4.2+1 #
- Change LICENSE to MIT.
0.4.2 #
- Changed
minDifferentSizedefault value back to 0 to avoid laggy issue.
0.4.1 #
- Fixed issue when using
pushAndRemoveUntilto navigate to another page.
0.4.0 #
- [BREAKING CHANGE]: Removed
timerDurationinKeyboardDetectionController. - The
minDifferentSizenow works correctly and responses right after the bottom view insets satified the condition. Default value now is set to 100. - Added
keyboardSizeandisKeyboardSizeLoadedtoKeyboardDetectionControllerto get the keyboard size.
0.3.0 #
- Compatible with Flutter 3.0.
- Changed from using
TimertodidChangeMetricsfor listening to the changing of the bottom view insets. - Added
minDifferentSizeparameter toKeyboardDetectionController, now you can set the minimum changed of size between two checks to detect the keyboard visibility. Default value is 0. - [Deprecated]: Don't need to use
timerDurationinKeyboardDetectionControllersince this version.
0.2.1 #
- Auto close usused resources after dispose.
0.2.0 #
- Added 3 variables to
KeyboardDetectionControllerto get the current state of the keyboard visibility:currentState: the current state of the keyboard visibility return inbool?(null: unknown,true: visible,false: hidden).keyboardState: the current state of the keyboard visibility return in enumKeyboardState(unknown: unknown,visible: visible,hidden: hidden).asStreamto listen for keyboard visibility changing events inbool.
0.1.0 #
-
Bug fixed: Now keyboard visibility only notify one time when changed.
-
[BREAKING CHANGE]
- Before:
@override Widget build(BuildContext context) { return MaterialApp( home: KeyboardDetection( timerDuration: const Duration(milliseconds: 10), onChanged: (value) { print('Is Keyboard Opened: $value'); setState(() { isKeyboardOpened = value; }); }, child:- Now:
@override Widget build(BuildContext context) { return MaterialApp( home: KeyboardDetection( controller: KeyboardDetectionController( timerDuration: const Duration(milliseconds: 10), onChanged: (value) { print('Is Keyboard Opened: $value'); setState(() { isKeyboardOpened = value; }); }, ), child:
0.0.1+1 #
- Initial release.