update description size + fix some bug

This commit is contained in:
Thomas Fransolet 2024-12-05 16:36:18 +01:00
parent 4e19869aee
commit 59d2fcbe51
3 changed files with 4 additions and 4 deletions

View File

@ -133,7 +133,7 @@ class _SectionPageDetailState extends State<SectionPageDetail> {
alignment: Alignment.center, alignment: Alignment.center,
child: HtmlWidget( child: HtmlWidget(
widget.sectionDTO.title!.where((translation) => translation.language == appContext.getContext().language).firstOrNull?.value ?? "", widget.sectionDTO.title!.where((translation) => translation.language == appContext.getContext().language).firstOrNull?.value ?? "",
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) 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)
@ -141,7 +141,7 @@ class _SectionPageDetailState extends State<SectionPageDetail> {
//alignment: Alignment.center, //alignment: Alignment.center,
child: HtmlWidget( child: HtmlWidget(
widget.sectionDTO.description!.where((translation) => translation.language == appContext.getContext().language).firstOrNull?.value ?? "", widget.sectionDTO.description!.where((translation) => translation.language == appContext.getContext().language).firstOrNull?.value ?? "",
textStyle: new TextStyle(fontSize: kIsWeb? kWebSectionDescriptionDetailSize : kSectionDescriptionDetailSize, color: widget.textColor, fontFamily: 'Roboto'), textStyle: new TextStyle(fontSize: kIsWeb? kWebSectionDescriptionDetailSize : kSectionDescriptionDetailSize, /*color: widget.textColor,*/ fontFamily: 'Roboto'),
) )
) )
], ],

View File

@ -18,7 +18,7 @@ const kBackgroundLight = Color(0xfff3f3f3);
const List<String> languages = ["FR", "NL", "EN", "DE", "IT", "ES", "PL", "CN", "AR", "UK"]; // hmmmm depends on config.. const List<String> languages = ["FR", "NL", "EN", "DE", "IT", "ES", "PL", "CN", "AR", "UK"]; // hmmmm depends on config..
const kTitleSize = 32.0; const kTitleSize = 32.0;
const kDescriptionSize = 15.0; const kDescriptionSize = 22.0;
const kSectionTitleDetailSize = 30.0; const kSectionTitleDetailSize = 30.0;
const kSectionDescriptionDetailSize = 18.0; const kSectionDescriptionDetailSize = 18.0;

View File

@ -56,7 +56,7 @@ dependencies:
confetti: ^0.7.0 confetti: ^0.7.0
flutter_launcher_icons: ^0.13.1 # All but web flutter_launcher_icons: ^0.13.1 # All but web
#flutter_svg_provider: ^1.0.6 #flutter_svg_provider: ^1.0.6
flutter_widget_from_html: ^0.15.1 flutter_widget_from_html: ^0.15.3
flutter_pdfview: ^1.3.2 flutter_pdfview: ^1.3.2
firebase_storage: ^12.0.1 firebase_storage: ^12.0.1
firebase_core: ^3.1.0 firebase_core: ^3.1.0