WIP: expandable run title (run #224)
This commit is contained in:
@@ -277,6 +277,8 @@ class _AdaptiveShellState extends State<AdaptiveShell> {
|
||||
subtitle: spec?.subtitle,
|
||||
subtitleIcon: spec?.subtitleIcon,
|
||||
onTitlePressed: spec?.onTitlePressed,
|
||||
expandableTitle: spec?.expandableTitle ?? false,
|
||||
titleAction: spec?.titleAction,
|
||||
titleSemanticLabel: spec?.titleSemanticLabel,
|
||||
titleKey: spec?.titleKey,
|
||||
actions: [
|
||||
|
||||
@@ -144,6 +144,8 @@ class _DetailPaneState extends State<DetailPane> {
|
||||
subtitle: spec?.subtitle,
|
||||
subtitleIcon: spec?.subtitleIcon,
|
||||
onTitlePressed: spec?.onTitlePressed,
|
||||
expandableTitle: spec?.expandableTitle ?? false,
|
||||
titleAction: spec?.titleAction,
|
||||
titleSemanticLabel: spec?.titleSemanticLabel,
|
||||
titleKey: spec?.titleKey,
|
||||
actions: actions,
|
||||
|
||||
@@ -10,6 +10,8 @@ class ShellBarSpec {
|
||||
this.subtitle,
|
||||
this.subtitleIcon,
|
||||
this.onTitlePressed,
|
||||
this.expandableTitle = false,
|
||||
this.titleAction,
|
||||
this.titleSemanticLabel,
|
||||
this.titleKey,
|
||||
this.onBack,
|
||||
@@ -38,6 +40,8 @@ class ShellBarSpec {
|
||||
|
||||
/// Makes the title pill a button; see `SegmentedBar.onTitlePressed`.
|
||||
final VoidCallback? onTitlePressed;
|
||||
final bool expandableTitle;
|
||||
final Widget? titleAction;
|
||||
final String? titleSemanticLabel;
|
||||
final Key? titleKey;
|
||||
final VoidCallback? onBack;
|
||||
@@ -136,6 +140,8 @@ class ShellBar extends StatefulWidget {
|
||||
this.subtitle,
|
||||
this.subtitleIcon,
|
||||
this.onTitlePressed,
|
||||
this.expandableTitle = false,
|
||||
this.titleAction,
|
||||
this.titleSemanticLabel,
|
||||
this.titleKey,
|
||||
this.onBack,
|
||||
@@ -168,6 +174,8 @@ class ShellBar extends StatefulWidget {
|
||||
final String? subtitle;
|
||||
final IconData? subtitleIcon;
|
||||
final VoidCallback? onTitlePressed;
|
||||
final bool expandableTitle;
|
||||
final Widget? titleAction;
|
||||
final String? titleSemanticLabel;
|
||||
final Key? titleKey;
|
||||
final VoidCallback? onBack;
|
||||
@@ -207,6 +215,8 @@ class _ShellBarState extends State<ShellBar> {
|
||||
subtitle: widget.subtitle,
|
||||
subtitleIcon: widget.subtitleIcon,
|
||||
onTitlePressed: widget.onTitlePressed,
|
||||
expandableTitle: widget.expandableTitle,
|
||||
titleAction: widget.titleAction,
|
||||
titleSemanticLabel: widget.titleSemanticLabel,
|
||||
titleKey: widget.titleKey,
|
||||
onBack: widget.onBack,
|
||||
|
||||
Reference in New Issue
Block a user