From 679ed5d2860278635ecae8ac187f5a2e48cdd1c3 Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Thu, 17 Oct 2024 11:13:22 +0200 Subject: [PATCH] update title ellipsis --- lib/Components/CustomAppBar.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Components/CustomAppBar.dart b/lib/Components/CustomAppBar.dart index f3dfe0b..e72125c 100644 --- a/lib/Components/CustomAppBar.dart +++ b/lib/Components/CustomAppBar.dart @@ -32,8 +32,8 @@ class _CustomAppBarState extends State { String cleanedTitle = widget.title.replaceAll('\n', ' ').replaceAll('
', ' '); - String formattedTitle = cleanedTitle.length > 35 - ? cleanedTitle.substring(0, 35) + '...' + String formattedTitle = cleanedTitle.length > 45 + ? cleanedTitle.substring(0, 45) + '...' : cleanedTitle; //final notchInset = MediaQuery.of(context).padding;