Merge pull request #4921 from pangeachat/center-input-suggestion
Center input bar suggestion text
This commit is contained in:
commit
7534e81d12
1 changed files with 14 additions and 8 deletions
|
|
@ -523,14 +523,20 @@ 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,
|
||||
),
|
||||
// #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,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
onChanged: (text) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue