AmwalPayBottomSheet class

A bottom sheet wrapper that displays the SDK payment screen from the bottom of the screen, covering approximately 90% of the screen height.

This provides a modern, stack-based presentation where the payment UI slides up from the bottom and overlays the existing content.

Features:

  • Circular border radius at the top (24px)
  • Fixed height at 90% of screen (increases when keyboard is open)
  • Keyboard-aware: automatically expands to accommodate keyboard
Inheritance

Constructors

AmwalPayBottomSheet({Key? key, required Widget child, double heightFactor = 0.9, bool isDismissible = false, bool showDragHandle = false, double borderRadius = 24.0, VoidCallback? onDismissed})
const

Properties

borderRadius double
The border radius for the top corners
final
child Widget
The child widget to display inside the bottom sheet (typically AmwalPayScreen)
final
hashCode int
The hash code for this object.
no setterinherited
heightFactor double
The height factor of the screen (0.0 to 1.0). Defaults to 0.9 (90% of screen)
final
isDismissible bool
Whether the bottom sheet can be dismissed by dragging down
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onDismissed VoidCallback?
Callback when the bottom sheet is dismissed
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDragHandle bool
Whether to show a drag handle at the top
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

Static Methods

show<T>({required BuildContext context, required Widget child, double heightFactor = 0.9, bool isDismissible = false, bool enableDrag = false, bool showDragHandle = false, double borderRadius = 24.0, VoidCallback? onDismissed}) Future<T?>
Shows the payment screen as a modal bottom sheet.