overflowButtonBuilder property

Widget Function(BuildContext context, VoidCallback openFlyout) overflowButtonBuilder
final

Overrides the default overflow button builder.

Use the openFlyout argument to open the overflow flyout.

BreadcrumbBar(
  ...,
  overflowButtonBuilder: (context, openFlyout) {
    return IconButton(
      icon: const Icon(FluentIcons.more),
      onPressed: openFlyout,
    );
  },
)

If a custom behavior is needed, use a global key to access the FlyoutController and show the flyout:

final key = GlobalKey<BreadcrumbBarState>();

BreadcrumbBar(
  key: key,
  ...,
)

key.currentState.flyoutController.showFlyout(...);

Implementation

final Widget Function(
  BuildContext context,
  VoidCallback openFlyout,
) overflowButtonBuilder;