fix(ui_layout): fix textwrapper

This commit is contained in:
Hugo Pointcheval 2023-02-09 18:09:45 +01:00
parent 9e332c3ba7
commit 029e435241
Signed by: hugo
GPG Key ID: 3AAC487E131E00BC
3 changed files with 3 additions and 3 deletions

View File

@ -13,6 +13,6 @@ class CustomAppBar extends AppBarComponent with $CustomAppBarCWMixin {
@override
Widget build(BuildContext context) => AppBar(
title: Text(title ?? ''),
title: Text(title?.text ?? ''),
);
}

View File

@ -36,7 +36,7 @@ class AppBarLayout extends Layout {
appBar: PreferredSize(
preferredSize: const Size.fromHeight(60),
child: context.components.appBar?.copyWith(
title: title,
title: title.wrap(),
leading: leading,
actions: actions,
) ??

View File

@ -38,7 +38,7 @@ class FrameLayout extends Layout {
appBar: PreferredSize(
preferredSize: const Size.fromHeight(60),
child: context.components.appBar?.copyWith(
title: title,
title: title.wrap(),
leading: leading,
actions: actions,
) ??