merge fixes

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2020-12-31 18:53:33 +05:30
parent 6e54d1d2af
commit 328afc44d8
4 changed files with 16 additions and 11 deletions
+3 -2
View File
@@ -231,7 +231,8 @@ class MessageInputState extends State<MessageInput> {
Padding(
padding: const EdgeInsets.all(8.0),
child: StreamSvgIcon.reply(
color: Colors.black.withOpacity(0.2),
color:
StreamChatTheme.of(context).colorTheme.greyGainsboro,
),
),
Text(
@@ -263,7 +264,7 @@ class MessageInputState extends State<MessageInput> {
);
if (widget.editMessage == null) {
child = Material(
color: Colors.white,
color: StreamChatTheme.of(context).colorTheme.white,
elevation: 8,
child: child,
);
+1 -1
View File
@@ -825,7 +825,7 @@ class _MessageListViewState extends State<MessageListView> {
child = Swipeable(
onSwipeEnd: () => widget.onMessageSwiped(message),
backgroundIcon: StreamSvgIcon.reply(
color: StreamChatTheme.of(context).accentColor,
color: StreamChatTheme.of(context).colorTheme.accentBlue,
),
child: child,
);
+7 -7
View File
@@ -131,9 +131,11 @@ class ReplyToMessageWidget extends StatelessWidget {
minHeight: 48.0,
),
decoration: BoxDecoration(
color: _getBackgroundColor(),
color: _getBackgroundColor(context),
border: showBorder
? Border.all(color: Colors.black.withOpacity(0.08))
? Border.all(
color: StreamChatTheme.of(context).colorTheme.greyGainsboro,
)
: null,
borderRadius: BorderRadius.only(
topRight: Radius.circular(12),
@@ -232,9 +234,7 @@ class ReplyToMessageWidget extends StatelessWidget {
ShapeBorder _getDefaultShape(BuildContext context) {
return RoundedRectangleBorder(
side: BorderSide(
color: Theme.of(context).brightness == Brightness.dark
? Colors.white.withAlpha(24)
: Colors.black.withAlpha(24),
color: StreamChatTheme.of(context).colorTheme.greyWhisper,
),
borderRadius: BorderRadius.circular(8),
);
@@ -308,9 +308,9 @@ class ReplyToMessageWidget extends StatelessWidget {
};
}
Color _getBackgroundColor() {
Color _getBackgroundColor(BuildContext context) {
if (_containsScrapeUrl) {
return Color(0xFFE9F2FF);
return StreamChatTheme.of(context).colorTheme.blueAlice;
}
return messageTheme.messageBackgroundColor;
}
+5 -1
View File
@@ -2,6 +2,8 @@ import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'stream_chat_theme.dart';
///
class Swipeable extends StatefulWidget {
final Widget child;
@@ -139,7 +141,9 @@ class _SwipeableState extends State<Swipeable> with TickerProviderStateMixin {
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(
color: Colors.black.withOpacity(0.08),
color: StreamChatTheme.of(context)
.colorTheme
.greyGainsboro,
),
),
child: widget.backgroundIcon,