mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 00:21:19 +00:00
update description size + fix some bug
This commit is contained in:
parent
4e19869aee
commit
59d2fcbe51
@ -133,7 +133,7 @@ class _SectionPageDetailState extends State<SectionPageDetail> {
|
||||
alignment: Alignment.center,
|
||||
child: HtmlWidget(
|
||||
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)
|
||||
@ -141,7 +141,7 @@ class _SectionPageDetailState extends State<SectionPageDetail> {
|
||||
//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'),
|
||||
textStyle: new TextStyle(fontSize: kIsWeb? kWebSectionDescriptionDetailSize : kSectionDescriptionDetailSize, /*color: widget.textColor,*/ fontFamily: 'Roboto'),
|
||||
)
|
||||
)
|
||||
],
|
||||
|
||||
@ -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 kTitleSize = 32.0;
|
||||
const kDescriptionSize = 15.0;
|
||||
const kDescriptionSize = 22.0;
|
||||
|
||||
const kSectionTitleDetailSize = 30.0;
|
||||
const kSectionDescriptionDetailSize = 18.0;
|
||||
|
||||
@ -56,7 +56,7 @@ dependencies:
|
||||
confetti: ^0.7.0
|
||||
flutter_launcher_icons: ^0.13.1 # All but web
|
||||
#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
|
||||
firebase_storage: ^12.0.1
|
||||
firebase_core: ^3.1.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user