This commit is contained in:
Thomas Fransolet 2026-07-17 15:23:26 +02:00
parent 6942518b4b
commit 2af485247d
2 changed files with 1 additions and 9 deletions

View File

@ -333,7 +333,7 @@ class _MainViewWidget extends State<MainViewWidget> {
if (instanceDTO.isAssistant == true) { if (instanceDTO.isAssistant == true) {
tabletAppContext.applicationInstanceDTO = tabletInstance; tabletAppContext.applicationInstanceDTO = tabletInstance;
} }
if (tabletInstance.isStatistic == true) { if (tabletInstance.hasStats == true) {
tabletAppContext.statisticsService = StatisticsService( tabletAppContext.statisticsService = StatisticsService(
clientAPI: tabletAppContext.clientAPI!, clientAPI: tabletAppContext.clientAPI!,
instanceId: tabletAppContext.instanceId, instanceId: tabletAppContext.instanceId,

View File

@ -166,14 +166,6 @@ class _SectionPageDetailState extends State<SectionPageDetail> {
textStyle: new TextStyle(fontSize: kIsWeb ? kWebSectionTitleDetailSize : kSectionTitleDetailSize, /*color: widget.textColor,*/ fontFamily: 'Roboto'), textStyle: new TextStyle(fontSize: kIsWeb ? kWebSectionTitleDetailSize : kSectionTitleDetailSize, /*color: widget.textColor,*/ fontFamily: 'Roboto'),
) )
), ),
if(widget.sectionDTO.description!.where((translation) => translation.language == appContext.getContext().language).firstOrNull != null && widget.sectionDTO.description!.firstWhere((translation) => translation.language == appContext.getContext().language).value!.trim().isNotEmpty)
Align(
//alignment: Alignment.center,
child: HtmlWidget(
widget.sectionDTO.description!.where((translation) => translation.language == appContext.getContext().language).firstOrNull?.value ?? "",
textStyle: new TextStyle(fontSize: kIsWeb? kWebSectionDescriptionDetailSize : kSectionDescriptionDetailSize, /*color: widget.textColor,*/ fontFamily: 'Roboto'),
)
)
], ],
), ),
), ),