From 39bc7ca20e6e77a897f04374026187041ad612c9 Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Thu, 2 Nov 2023 17:47:03 +0100 Subject: [PATCH] Fix snackbar + remove align from quill + add alignment for slider (title preview) --- lib/Components/message_notification.dart | 2 +- lib/Components/translation_input_container.dart | 1 - .../Section/SubSection/Slider/listView_card_image.dart | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Components/message_notification.dart b/lib/Components/message_notification.dart index 0709399..70b84da 100644 --- a/lib/Components/message_notification.dart +++ b/lib/Components/message_notification.dart @@ -4,7 +4,7 @@ showNotification (Color backgroundColor, Color textColor, String text, BuildCont final snackBar = SnackBar( behavior: SnackBarBehavior.floating, duration: duration == null ? Duration(milliseconds: 1500) : Duration(milliseconds: duration), - width: 280.0, // Width of the SnackBar. + width: 320.0, // Width of the SnackBar. backgroundColor: backgroundColor, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10.0), diff --git a/lib/Components/translation_input_container.dart b/lib/Components/translation_input_container.dart index d1805af..d17ea85 100644 --- a/lib/Components/translation_input_container.dart +++ b/lib/Components/translation_input_container.dart @@ -168,7 +168,6 @@ class _TranslationInputContainerState extends State w ] : [ ToolBarStyle.bold, ToolBarStyle.italic, - ToolBarStyle.align, ToolBarStyle.color, ToolBarStyle.background, ToolBarStyle.listBullet, diff --git a/lib/Screens/Configurations/Section/SubSection/Slider/listView_card_image.dart b/lib/Screens/Configurations/Section/SubSection/Slider/listView_card_image.dart index 3c9a552..9b1c86f 100644 --- a/lib/Screens/Configurations/Section/SubSection/Slider/listView_card_image.dart +++ b/lib/Screens/Configurations/Section/SubSection/Slider/listView_card_image.dart @@ -50,6 +50,9 @@ class _ListViewCard extends State { HtmlWidget( widget.listItems[widget.index].title == null ? "" : widget.listItems[widget.index].title![0].value!, //textAlign: TextAlign.left, + customStylesBuilder: (element) { + return {'text-align': 'center'}; + }, textStyle: TextStyle(fontSize: 15) ), /*AutoSizeText(