updated title for custom bar
This commit is contained in:
parent
8b88b50c1f
commit
686a631c27
@ -32,9 +32,9 @@ 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 > 45
|
/*String formattedTitle = cleanedTitle.length > 45
|
||||||
? cleanedTitle.substring(0, 45) + '...'
|
? cleanedTitle.substring(0, 45) + '...'
|
||||||
: cleanedTitle;
|
: cleanedTitle;*/
|
||||||
|
|
||||||
//final notchInset = MediaQuery.of(context).padding;
|
//final notchInset = MediaQuery.of(context).padding;
|
||||||
return AppBar(
|
return AppBar(
|
||||||
@ -54,10 +54,10 @@ class _CustomAppBarState extends State<CustomAppBar> {
|
|||||||
},
|
},
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: widget.isHomeButton ? size.width * 0.8 : null,
|
width: widget.isHomeButton ? size.width * 0.8 : null,
|
||||||
height: 60,
|
height: 58,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: HtmlWidget(
|
child: HtmlWidget(
|
||||||
formattedTitle,
|
cleanedTitle,
|
||||||
textStyle: const TextStyle(color: Colors.white, fontFamily: 'Roboto', fontSize: 20),
|
textStyle: const TextStyle(color: Colors.white, fontFamily: 'Roboto', fontSize: 20),
|
||||||
customStylesBuilder: (element)
|
customStylesBuilder: (element)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user