Skip to content

Commit f1b14f1

Browse files
committed
fix(ui): chat bubble colors
1 parent 0f0d582 commit f1b14f1

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

lib/pages/shopinbit/shopinbit_ticket_detail.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,9 @@ class _ShopInBitTicketDetailState extends ConsumerState<ShopInBitTicketDetail> {
312312
}
313313

314314
Widget _chatBubble(ShopInBitMessage message, bool isDesktop) {
315-
final textColor = message.isFromUser ? Colors.white : null;
315+
final textColor = message.isFromUser
316+
? Theme.of(context).extension<StackColors>()!.buttonTextPrimary
317+
: Theme.of(context).extension<StackColors>()!.buttonTextSecondary;
316318

317319
return Align(
318320
alignment: message.isFromUser
@@ -324,8 +326,8 @@ class _ShopInBitTicketDetailState extends ConsumerState<ShopInBitTicketDetail> {
324326
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 10),
325327
decoration: BoxDecoration(
326328
color: message.isFromUser
327-
? Theme.of(context).extension<StackColors>()!.accentColorBlue
328-
: Theme.of(context).extension<StackColors>()!.popupBG,
329+
? Theme.of(context).extension<StackColors>()!.buttonBackPrimary
330+
: Theme.of(context).extension<StackColors>()!.buttonBackSecondary,
329331
borderRadius: BorderRadius.only(
330332
topLeft: const Radius.circular(12),
331333
topRight: const Radius.circular(12),

0 commit comments

Comments
 (0)