build method

  1. @override
dynamic build(
  1. dynamic context
)

Implementation

@override
Widget build(BuildContext context) {
  final docs = config.docsDesc
      .map(
        (fileConfig) => File(
          baseDir: fileConfig['baseDir'] ?? '',
          title: fileConfig['title'] ?? '',
          additionalInfo: fileConfig['additionalInfo'] ?? '',
        ),
      )
      .toList();

  return SinglePage(
    footer: footer,
    appAttributes: appAttributes,
    showMediumSizeLayout: appAttributes.showMediumSizeLayout,
    showLargeSizeLayout: appAttributes.showLargeSizeLayout,
    children: [
      MarkdownFilePage(
        currentLocale: Localizations.localeOf(context),
        filePathDe: '',
        filePathEn: config.filePath,
        imageDirectory: config.imageDir,
        useLightMode: appAttributes.useLightMode,
      ),
      FileTable(title: appendixTitle, docs: docs),
    ],
  );
}