Implementation
static Widget getWidget(String? componentId, AppModel app) {
if (componentId == 'booklets') {
return BookletListWidget(app: app);
}
if (componentId == 'decoratedContents') {
return DecoratedContentListWidget(app: app);
}
if (componentId == 'dividers') {
return DividerListWidget(app: app);
}
if (componentId == 'documents') {
return DocumentListWidget(app: app);
}
if (componentId == 'dynamicWidgets') {
return DynamicWidgetListWidget(app: app);
}
if (componentId == 'faders') {
return FaderListWidget(app: app);
}
if (componentId == 'grids') {
return GridListWidget(app: app);
}
if (componentId == 'presentations') {
return PresentationListWidget(app: app);
}
if (componentId == 'simpleImages') {
return SimpleImageListWidget(app: app);
}
if (componentId == 'simpleTexts') {
return SimpleTextListWidget(app: app);
}
if (componentId == 'tutorials') {
return TutorialListWidget(app: app);
}
return Container();
}