chore: rebuild input bar hint text on language update (#5042)

This commit is contained in:
ggurdin 2026-01-05 11:29:09 -05:00 committed by GitHub
parent 4374e60779
commit c67a6369a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
),
),
),
),
),