From c67a6369a4b229d8b7e397002dcc7f16c89d549a Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Mon, 5 Jan 2026 11:29:09 -0500 Subject: [PATCH] chore: rebuild input bar hint text on language update (#5042) --- lib/pages/chat/input_bar.dart | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/lib/pages/chat/input_bar.dart b/lib/pages/chat/input_bar.dart index 029ac16e5..77d0bab05 100644 --- a/lib/pages/chat/input_bar.dart +++ b/lib/pages/chat/input_bar.dart @@ -525,17 +525,21 @@ class InputBar extends StatelessWidget { decoration: decoration.copyWith( // #Pangea // hint: ShrinkableText( - hint: SizedBox( - height: 24, - child: ShrinkableText( - // Pangea# - text: choreographer.itController.open.value - ? L10n.of(context).buildTranslation - : _defaultHintText(context), - maxWidth: double.infinity, - style: Theme.of(context).textTheme.bodyLarge?.copyWith( - color: Theme.of(context).disabledColor, - ), + hint: StreamBuilder( + stream: MatrixState + .pangeaController.userController.languageStream.stream, + builder: (context, _) => SizedBox( + height: 24, + child: ShrinkableText( + // Pangea# + text: choreographer.itController.open.value + ? L10n.of(context).buildTranslation + : _defaultHintText(context), + maxWidth: double.infinity, + style: Theme.of(context).textTheme.bodyLarge?.copyWith( + color: Theme.of(context).disabledColor, + ), + ), ), ), ),