Migrated to null-safety (thanks to @Jjagg!)
-
Improved the dart-doc of Portal and PortalEntry
-
Added and improved the examples
-
Fixed a bug where changing the visibility of a portal destroys the state of
child
-
Adding a way to delay the disappearance of a portal entry:
PortalEntry( visible: visible, closeDuration: Duration(seconds: 2), portal: ..., child: ... )
With this code, when
visible
changes tofalse
, the portal will stay visible for an extra 2 seconds.This can be useful to implement leave animations. For example, the following implement a fade-out transition:
PortalEntry( visible: visible, closeDuration: Duration(seconds: 2), portal: AnimatedOpacity( duration: Duration(seconds: 2), opacity: visible ? 1 : 0, child: Container(color: Colors.red), ), child: ... )
- Update to support latest Flutter version
-
Changed the algorithm behind how portals/overlays are rendered.
This fixes some problems when combined withLayoutBuilder
-
Removed the generic parameter of
PortalEntry
Fix pub badge
Improve package description
Initial implementation