chore: rebuild input bar hint text on language update (#5042)
This commit is contained in:
parent
4374e60779
commit
c67a6369a4
1 changed files with 15 additions and 11 deletions
|
|
@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue