ScrollToBottom class
A floating action button typically displayed near the composer that scrolls the chat list to the bottom when pressed.
Animates its appearance/disappearance based on the provided animation.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ScrollToBottom
Constructors
-
ScrollToBottom.new({Key? key, required Animation<
double> animation, required VoidCallback onPressed, double? left, double? right = 16, double? top, double? bottom = 12, bool? useComposerHeightForBottomOffset = true, bool? mini = true, ShapeBorder? shape = const CircleBorder(), Widget? icon = const Icon(Icons.keyboard_arrow_down), bool? handleSafeArea = true, Color? backgroundColor, Color? foregroundColor, String? scrollToBottomArrow}) -
Creates a scroll-to-bottom button.
const
Properties
-
animation
→ Animation<
double> -
Animation controlling the visibility and scale of the button.
final
- backgroundColor → Color?
-
Background color of the button.
final
- bottom → double?
-
Optional bottom position.
final
- foregroundColor → Color?
-
Foreground color (icon color) of the button.
final
- handleSafeArea → bool?
-
Whether to adjust the bottom position for the bottom safe area.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
The icon displayed inside the button.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- left → double?
-
Optional left position.
final
- mini → bool?
-
Whether to use the smaller mini FAB size.
final
- onPressed → VoidCallback
-
Callback triggered when the button is pressed.
final
- right → double?
-
Optional right position.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollToBottomArrow → String?
-
final
- shape → ShapeBorder?
-
The shape of the button.
final
- top → double?
-
Optional top position.
final
- useComposerHeightForBottomOffset → bool?
-
Whether to offset the button's bottom position by the composer's height.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited