Add mobile chat opening identity transition
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user