Grow the tapped chat row into the chat page on phones
Replace the identity-avatar Hero with a container transform: the row's surface, tint and edge marker morph into the full page while the content cross-fades, and Back, the Cupertino edge swipe or Android predictive back shrink the page into the open chat's row. Reduced motion or a row off screen fades instead; wide layouts are unchanged.
This commit is contained in:
@@ -65,8 +65,8 @@ class _ChatWorkspaceEntranceState extends State<ChatWorkspaceEntrance>
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final content = HeroMode(
|
||||
// The initial pushed page has a native Hero. Here both surfaces share
|
||||
// one route; only the workspace entrance animates, never duplicate tags.
|
||||
// Both surfaces share one route here; only the workspace entrance
|
||||
// animates, so no Hero inside the chat flies or duplicates a tag.
|
||||
enabled: false,
|
||||
child: TickerMode(enabled: widget.visible, child: widget.child),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user