apply theme to rest of the sdk

This commit is contained in:
Salvatore Giordano
2020-12-31 10:24:25 +01:00
parent a8171f7314
commit f011bf32fc
17 changed files with 51 additions and 24 deletions
+7 -4
View File
@@ -53,7 +53,7 @@ class ChannelImage extends StatelessWidget {
this.showOnlineStatus = true,
this.borderRadius,
this.selected = false,
this.selectionColor = const Color(0xFF006CFF),
this.selectionColor,
this.selectionThickness = 4,
}) : super(key: key);
@@ -105,7 +105,8 @@ class ChannelImage extends StatelessWidget {
.constraints,
onTap: onTap != null ? (_) => onTap() : null,
selected: selected,
selectionColor: selectionColor,
selectionColor: selectionColor ??
StreamChatTheme.of(context).colorTheme.accentBlue,
selectionThickness: selectionThickness,
);
});
@@ -127,7 +128,8 @@ class ChannelImage extends StatelessWidget {
.constraints,
onTap: onTap,
selected: selected,
selectionColor: selectionColor,
selectionColor: selectionColor ??
StreamChatTheme.of(context).colorTheme.accentBlue,
selectionThickness: selectionThickness,
);
}
@@ -197,7 +199,8 @@ class ChannelImage extends StatelessWidget {
.ownMessageTheme
.avatarTheme
.constraints,
color: selectionColor,
color: selectionColor ??
StreamChatTheme.of(context).colorTheme.accentBlue,
child: Padding(
padding: EdgeInsets.all(selectionThickness),
child: child,