Add mobile chat opening identity transition

This commit is contained in:
2026-11-07 22:09:30 +00:00
parent 63758cd176
commit 292ed92dc3
6 changed files with 143 additions and 0 deletions
+3
View File
@@ -60,6 +60,7 @@ class SegmentedBar extends StatefulWidget
this.onTitlePressed,
this.expandableTitle = false,
this.titleAction,
this.titleLeading,
this.titleSemanticLabel,
this.titleKey,
this.actions = const [],
@@ -107,6 +108,7 @@ class SegmentedBar extends StatefulWidget
/// An action shown inside the expanded title pill.
final Widget? titleAction;
final Widget? titleLeading;
final String? titleSemanticLabel;
/// The key of the title's button (or its content when not pressable).
@@ -404,6 +406,7 @@ class _SegmentedBarState extends State<SegmentedBar> {
buttonKey: expanded ? null : titleKey,
expanded: expanded,
titleAction: expanded ? widget.titleAction : null,
leading: widget.titleLeading,
foreground: foregroundColor,
fill: pillColor,
);
@@ -172,6 +172,7 @@ class SegmentedTitlePill extends StatelessWidget {
this.buttonKey,
this.expanded = false,
this.titleAction,
this.leading,
this.foreground,
this.fill,
});
@@ -187,6 +188,7 @@ class SegmentedTitlePill extends StatelessWidget {
final Key? buttonKey;
final bool expanded;
final Widget? titleAction;
final Widget? leading;
final Color? foreground;
final Color? fill;
@@ -207,6 +209,7 @@ class SegmentedTitlePill extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
if (leading != null) ...[leading!, const SizedBox(width: 8)],
Flexible(
child: Column(
mainAxisSize: MainAxisSize.min,