This commit is contained in:
Salvatore Giordano
2021-07-21 12:32:01 +02:00
parent 1db70a6eae
commit 2a66fd88d0
2 changed files with 19 additions and 12 deletions
@@ -200,12 +200,15 @@ class _MessageSearchListViewState extends State<MessageSearchListView> {
final backgroundColor =
MessageSearchListViewTheme.of(context).backgroundColor;
return backgroundColor != null
? ColoredBox(
color: backgroundColor,
child: messageSearchListCore,
)
: messageSearchListCore;
if (backgroundColor != null) {
return ColoredBox(
color: backgroundColor,
child: messageSearchListCore,
);
}
return messageSearchListCore;
}
Widget _separatorBuilder(BuildContext context, int index) => Container(
@@ -191,12 +191,16 @@ class _UserListViewState extends State<UserListView>
final backgroundColor = UserListViewTheme.of(context).backgroundColor;
final child = backgroundColor != null
? ColoredBox(
color: backgroundColor,
child: userListCore,
)
: userListCore;
Widget child;
if (backgroundColor != null) {
child = ColoredBox(
color: backgroundColor,
child: userListCore,
);
} else {
child = userListCore;
}
if (!widget.pullToRefresh) {
return child;