Skip to content

Commit 58d25c3

Browse files
authored
fix(ui): StreamCommandAutocompleteOptions command name styling (#2325)
1 parent 96988eb commit 58d25c3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/stream_chat_flutter/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
🐞 Fixed
1616

1717
- Fixed `StreamMessageInput` tries to expand to full height when used in a unconstrained environment.
18+
- Fixed `StreamCommandAutocompleteOptions` to style the command name with `textHighEmphasis` style.
1819

1920
## 9.13.0
2021

packages/stream_chat_flutter/lib/src/autocomplete/stream_autocomplete.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ class StreamAutocompleteOptions<T extends Object> extends StatelessWidget {
623623
children: [
624624
if (headerBuilder != null) ...[
625625
headerBuilder!(context),
626-
const Divider(height: 0),
626+
Divider(height: 0, color: colorTheme.borders),
627627
],
628628
LimitedBox(
629629
maxHeight: maxHeight ?? height * 0.5,

packages/stream_chat_flutter/lib/src/autocomplete/stream_command_autocomplete_options.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ class StreamCommandAutocompleteOptions extends StatelessWidget {
5151
),
5252
title: Text(
5353
context.translations.instantCommandsLabel,
54-
style: TextStyle(
55-
// ignore: deprecated_member_use
56-
color: colorTheme.textHighEmphasis.withOpacity(0.5),
54+
style: textTheme.body.copyWith(
55+
color: colorTheme.textLowEmphasis,
5756
),
5857
),
5958
);
@@ -67,8 +66,8 @@ class StreamCommandAutocompleteOptions extends StatelessWidget {
6766
children: [
6867
Text(
6968
command.name.capitalize(),
70-
style: const TextStyle(
71-
fontWeight: FontWeight.bold,
69+
style: textTheme.bodyBold.copyWith(
70+
color: colorTheme.textHighEmphasis,
7271
),
7372
),
7473
const SizedBox(width: 8),

0 commit comments

Comments
 (0)