Skip to content

Commit 6ba2a78

Browse files
committed
msglist [nfc]: Fix name of scroll-to-bottom callback
There's no "navigation" happening here -- the user remains on the same page of the app.
1 parent 5f457a4 commit 6ba2a78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/widgets/message_list.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ class ScrollToBottomButton extends StatelessWidget {
696696
final ValueNotifier<bool> visible;
697697
final ScrollController scrollController;
698698

699-
Future<void> _navigateToBottom() {
699+
Future<void> _scrollToBottom() {
700700
final distance = scrollController.position.pixels;
701701
final durationMsAtSpeedLimit = (1000 * distance / 8000).ceil();
702702
final durationMs = max(300, durationMsAtSpeedLimit);
@@ -721,7 +721,7 @@ class ScrollToBottomButton extends StatelessWidget {
721721
iconSize: 40,
722722
// Web has the same color in light and dark mode.
723723
color: const HSLColor.fromAHSL(0.5, 240, 0.96, 0.68).toColor(),
724-
onPressed: _navigateToBottom));
724+
onPressed: _scrollToBottom));
725725
}
726726
}
727727

0 commit comments

Comments
 (0)