fix nits
This commit is contained in:
@@ -200,12 +200,15 @@ class _MessageSearchListViewState extends State<MessageSearchListView> {
|
|||||||
|
|
||||||
final backgroundColor =
|
final backgroundColor =
|
||||||
MessageSearchListViewTheme.of(context).backgroundColor;
|
MessageSearchListViewTheme.of(context).backgroundColor;
|
||||||
return backgroundColor != null
|
|
||||||
? ColoredBox(
|
if (backgroundColor != null) {
|
||||||
color: backgroundColor,
|
return ColoredBox(
|
||||||
child: messageSearchListCore,
|
color: backgroundColor,
|
||||||
)
|
child: messageSearchListCore,
|
||||||
: messageSearchListCore;
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return messageSearchListCore;
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _separatorBuilder(BuildContext context, int index) => Container(
|
Widget _separatorBuilder(BuildContext context, int index) => Container(
|
||||||
|
|||||||
@@ -191,12 +191,16 @@ class _UserListViewState extends State<UserListView>
|
|||||||
|
|
||||||
final backgroundColor = UserListViewTheme.of(context).backgroundColor;
|
final backgroundColor = UserListViewTheme.of(context).backgroundColor;
|
||||||
|
|
||||||
final child = backgroundColor != null
|
Widget child;
|
||||||
? ColoredBox(
|
|
||||||
color: backgroundColor,
|
if (backgroundColor != null) {
|
||||||
child: userListCore,
|
child = ColoredBox(
|
||||||
)
|
color: backgroundColor,
|
||||||
: userListCore;
|
child: userListCore,
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
child = userListCore;
|
||||||
|
}
|
||||||
|
|
||||||
if (!widget.pullToRefresh) {
|
if (!widget.pullToRefresh) {
|
||||||
return child;
|
return child;
|
||||||
|
|||||||
Reference in New Issue
Block a user