Make input bar suggestion text vertically centered when shrinking

This commit is contained in:
Kelrap 2025-12-22 10:21:02 -05:00
parent 1edafd9f3c
commit 2ad245f4d0

View file

@ -523,14 +523,17 @@ class InputBar extends StatelessWidget {
// decoration: decoration!,
// Pangea#
decoration: decoration.copyWith(
hint: ShrinkableText(
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: SizedBox(
height: 24,
child: ShrinkableText(
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,
),
),
),
),
onChanged: (text) {