update title ellipsis
This commit is contained in:
parent
17ef37b45a
commit
679ed5d286
@ -32,8 +32,8 @@ class _CustomAppBarState extends State<CustomAppBar> {
|
|||||||
|
|
||||||
String cleanedTitle = widget.title.replaceAll('\n', ' ').replaceAll('<br>', ' ');
|
String cleanedTitle = widget.title.replaceAll('\n', ' ').replaceAll('<br>', ' ');
|
||||||
|
|
||||||
String formattedTitle = cleanedTitle.length > 35
|
String formattedTitle = cleanedTitle.length > 45
|
||||||
? cleanedTitle.substring(0, 35) + '...'
|
? cleanedTitle.substring(0, 45) + '...'
|
||||||
: cleanedTitle;
|
: cleanedTitle;
|
||||||
|
|
||||||
//final notchInset = MediaQuery.of(context).padding;
|
//final notchInset = MediaQuery.of(context).padding;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user