Skip to content

Commit 1d24a66

Browse files
committed
msglist [nfc]: moved valueListenable to keep builder and child together in ScrollToBottomButton
1 parent c6dc2db commit 1d24a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/message_list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ class ScrollToBottomButton extends StatelessWidget {
251251
@override
252252
Widget build(BuildContext context) {
253253
return ValueListenableBuilder<bool>(
254+
valueListenable: visibleValue,
254255
builder: (BuildContext context, bool value, Widget? child) {
255256
return (value && child != null) ? child : const SizedBox.shrink();
256257
},
257-
valueListenable: visibleValue,
258258
// TODO: fix hardcoded values for size and style here
259259
child: IconButton(
260260
tooltip: "Scroll to bottom",

0 commit comments

Comments
 (0)