runtime/cms_route library
Classes
- CMSRoute
- A route purely meant to identify CMS pages. Use it to distinguish between the way local routes and CMS routes are handled.
Functions
-
defaultRoutePageBuilder(
BuildContext context, GoRouterState state, {Widget transitionsBuilder(BuildContext context, Animation< double> animation, Animation<double> secondaryAnimation, Widget child)?, Duration? transitionDuration}) → Page - The default page builder for CMS routes.
Typedefs
- CMSPathResolver = String Function(String path)
- A function that resolves a CMS path from a local path. This is useful when multiple local routes use a single template path on the CMS. For example: (Local path) /blog/:slug -> /blog (CMS path)