ScrollToBottom constructor

const ScrollToBottom({
  1. Key? key,
  2. required Animation<double> animation,
  3. required VoidCallback onPressed,
  4. double? left,
  5. double? right = 16,
  6. double? top,
  7. double? bottom = 12,
  8. bool? useComposerHeightForBottomOffset = true,
  9. bool? mini = true,
  10. ShapeBorder? shape = const CircleBorder(),
  11. Widget? icon = const Icon(Icons.keyboard_arrow_down),
  12. bool? handleSafeArea = true,
  13. Color? backgroundColor,
  14. Color? foregroundColor,
  15. String? scrollToBottomArrow,
})

Creates a scroll-to-bottom button.

Implementation

const ScrollToBottom({
  super.key,
  required this.animation,
  required this.onPressed,
  this.left,
  this.right = 16,
  this.top,
  this.bottom = 12,
  this.useComposerHeightForBottomOffset = true,
  this.mini = true,
  this.shape = const CircleBorder(),
  this.icon = const Icon(Icons.keyboard_arrow_down),
  this.handleSafeArea = true,
  this.backgroundColor,
  this.foregroundColor,
  this.scrollToBottomArrow,
});