footerPagesWithConfigs method
A FooterPage per footer config, and OpenSourceLicensesPage on openSourceLicensesRoute.
Implementation
List<(Widget, StatefulBranchInfoProvider)> footerPagesWithConfigs(
AppAttributes appAttributes,
) {
return appAttributes.screenConfigurations.getFooterPagesConfig().map((
pageConfig,
) {
final Widget page = pageConfig.getRoutingName() == openSourceLicensesRoute
? OpenSourceLicensesPage(
footer: getFooter(appAttributes),
appAttributes: appAttributes,
)
: FooterPage(
footer: getFooter(appAttributes),
appAttributes: appAttributes,
filePathDe: pageConfig.getFilePathDe(),
filePathEn: pageConfig.getFilePathEn(),
);
return (page, pageConfig);
}).toList();
}