fix: Avoid using MediaQuery.of()

This commit is contained in:
imnotlxy 2025-08-01 06:15:23 +08:00
commit d2c2fd48d4
13 changed files with 20 additions and 21 deletions

View file

@ -463,8 +463,8 @@ class Message extends StatelessWidget {
colors: colors,
ignore: noBubble ||
!ownMessage ||
MediaQuery.of(context)
.highContrast,
MediaQuery.highContrastOf(
context),
scrollController:
scrollController,
child: Container(