@@ -231,7 +231,8 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: StreamSvgIcon.reply(
|
child: StreamSvgIcon.reply(
|
||||||
color: Colors.black.withOpacity(0.2),
|
color:
|
||||||
|
StreamChatTheme.of(context).colorTheme.greyGainsboro,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
@@ -263,7 +264,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
);
|
);
|
||||||
if (widget.editMessage == null) {
|
if (widget.editMessage == null) {
|
||||||
child = Material(
|
child = Material(
|
||||||
color: Colors.white,
|
color: StreamChatTheme.of(context).colorTheme.white,
|
||||||
elevation: 8,
|
elevation: 8,
|
||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -825,7 +825,7 @@ class _MessageListViewState extends State<MessageListView> {
|
|||||||
child = Swipeable(
|
child = Swipeable(
|
||||||
onSwipeEnd: () => widget.onMessageSwiped(message),
|
onSwipeEnd: () => widget.onMessageSwiped(message),
|
||||||
backgroundIcon: StreamSvgIcon.reply(
|
backgroundIcon: StreamSvgIcon.reply(
|
||||||
color: StreamChatTheme.of(context).accentColor,
|
color: StreamChatTheme.of(context).colorTheme.accentBlue,
|
||||||
),
|
),
|
||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -131,9 +131,11 @@ class ReplyToMessageWidget extends StatelessWidget {
|
|||||||
minHeight: 48.0,
|
minHeight: 48.0,
|
||||||
),
|
),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: _getBackgroundColor(),
|
color: _getBackgroundColor(context),
|
||||||
border: showBorder
|
border: showBorder
|
||||||
? Border.all(color: Colors.black.withOpacity(0.08))
|
? Border.all(
|
||||||
|
color: StreamChatTheme.of(context).colorTheme.greyGainsboro,
|
||||||
|
)
|
||||||
: null,
|
: null,
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.only(
|
||||||
topRight: Radius.circular(12),
|
topRight: Radius.circular(12),
|
||||||
@@ -232,9 +234,7 @@ class ReplyToMessageWidget extends StatelessWidget {
|
|||||||
ShapeBorder _getDefaultShape(BuildContext context) {
|
ShapeBorder _getDefaultShape(BuildContext context) {
|
||||||
return RoundedRectangleBorder(
|
return RoundedRectangleBorder(
|
||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
color: Theme.of(context).brightness == Brightness.dark
|
color: StreamChatTheme.of(context).colorTheme.greyWhisper,
|
||||||
? Colors.white.withAlpha(24)
|
|
||||||
: Colors.black.withAlpha(24),
|
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
);
|
);
|
||||||
@@ -308,9 +308,9 @@ class ReplyToMessageWidget extends StatelessWidget {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
Color _getBackgroundColor() {
|
Color _getBackgroundColor(BuildContext context) {
|
||||||
if (_containsScrapeUrl) {
|
if (_containsScrapeUrl) {
|
||||||
return Color(0xFFE9F2FF);
|
return StreamChatTheme.of(context).colorTheme.blueAlice;
|
||||||
}
|
}
|
||||||
return messageTheme.messageBackgroundColor;
|
return messageTheme.messageBackgroundColor;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ import 'dart:math' as math;
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
import 'stream_chat_theme.dart';
|
||||||
|
|
||||||
///
|
///
|
||||||
class Swipeable extends StatefulWidget {
|
class Swipeable extends StatefulWidget {
|
||||||
final Widget child;
|
final Widget child;
|
||||||
@@ -139,7 +141,9 @@ class _SwipeableState extends State<Swipeable> with TickerProviderStateMixin {
|
|||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
shape: BoxShape.circle,
|
shape: BoxShape.circle,
|
||||||
border: Border.all(
|
border: Border.all(
|
||||||
color: Colors.black.withOpacity(0.08),
|
color: StreamChatTheme.of(context)
|
||||||
|
.colorTheme
|
||||||
|
.greyGainsboro,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: widget.backgroundIcon,
|
child: widget.backgroundIcon,
|
||||||
|
|||||||
Reference in New Issue
Block a user