Skip to content

Commit dbac3e8

Browse files
gnpricechrisbobbe
authored andcommitted
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 7eaea54 commit dbac3e8

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
@@ -695,7 +695,7 @@ class ScrollToBottomButton extends StatelessWidget {
695695
final ValueNotifier<bool> visible;
696696
final ScrollController scrollController;
697697

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

0 commit comments

Comments
 (0)