group method

Widget group(
  1. Widget destinations
)

destinations, laid out by the look, as one group: in a bar a screen reader hears it as the tab bar, the destinations its tabs. A tab bar holds tabs and nothing else (Flutter fails one that holds anything else), so a look whose bar holds more than the destinations (an action beside them, a compose button) places this round the destinations alone, the action outside it. Without it the shell takes the whole bar for the tab bar. In a rail or a sidebar it adds nothing.

Implementation

Widget group(Widget destinations) => _DestinationGroup(
  bar: mode == DesignNavigationMode.bar,
  child: destinations,
);