screen method
GoRoute
screen(
- dynamic path, {
- List<GoRoute> routes = const [],
})
Implementation
GoRoute screen(path, {List<GoRoute> routes = const []}) {
if (buildConfig.isHubbleSDK && hubbleConfig().showHubbleLogoAtBottom) {
return CustomMaterialPage.goRoute(
name: name,
path: path,
builder: (context, state) {
return PoweredByHubble.atBottom(
context,
child: _screenBuilder().call(
context,
state,
),
);
},
routes: routes,
);
}
if (PlatformUtils.isWeb) {
return CustomMaterialPage.goRoute(
name: name,
path: path,
builder: (context, state) {
final child = _screenBuilder().call(
context,
state,
);
return child;
},
routes: routes,
);
}
return CustomMaterialPage.goRoute(
name: name,
path: path,
builder: _screenBuilder(),
routes: routes,
);
}