- Prevent some
Completer
error.- When the size of a notification was changed unexpectedly, a
Future already completed.
error could occur.
- When the size of a notification was changed unexpectedly, a
- Fixed warnings for Flutter3.0.0
- Wrapped code containing warnings in
_ambiguate()
- Wrapped code containing warnings in
- Added
InAppNotification.dismiss()
method that hides notification programmatically.- from #14 .
- Refactored again.
- Get rid of
StatefulWidget
, usingfindAncestorStateOfType()
method.- This is expensive when using
BuildContext
that obtained from deep hierarchy of Widget tree, so it replaced withgetElementForInheritedWidgetOfExactType()
method onInheritedWidget
.
- This is expensive when using
- Get rid of
- Fixed a bug that
curve
option inInAppNotification.show()
didn't affect.
- Added
dismissCurve
option inInAppNotification.show()
.
- Refactored a whole of code.
- More readable logic around showing and dismissing notification.
- Isolated
AnimationController
for interactions from one for showing.
- Expanded example app to change sample notification size.
- Fixed a bug that the notification doesn't apppear when swiping previous one.
- Added horizontal swipe gesture to dismiss notifications.
- Now, using cache of
InAppNotification
's state. This makes it possible to decrease overhead on showing notification.
- BREAKING: Overall, changes API.
- Removed
InAppNotification.of()
. To show notificaiton, useInAppNotification.show()
instead. - Changed usage of
InAppNotification
, see Usage section in README.
- Removed
- Replaced
Stack
withOverlayEntry
on showing notification sysytem. - Removed
minAlertHeight
property. Notification size is decided from specified Widget now. - Removed
safeAreaPadding
property. Notification position is now considering safe area automatically. - Added
curve
property toInAppNotification.show()
method.
Organize documents.
BREAKING: Migrate to sound null safety.
- Changed description.
- Added pub.dev badge to README.
First release.