createSearchShellRoute static method
Creates a ShellRoute for search with a persistent navigation bar.
This is useful for apps with bottom navigation where search should be one of the main tabs.
Implementation
static ShellRoute createSearchShellRoute({
required Widget Function(BuildContext, GoRouterState, Widget) builder,
List<RouteBase>? routes,
}) {
return ShellRoute(
builder: builder,
routes: routes ?? [createSearchRoute()],
);
}