TxBottomSheet constructor

const TxBottomSheet({
  1. required Widget content,
  2. Key? key,
  3. Widget? header,
  4. String? title,
  5. double? titleSpacing,
  6. bool? centerTitle,
  7. Widget? leading,
  8. double? leadingWidth,
  9. bool automaticallyImplyLeading = true,
  10. List<Widget>? actions,
  11. VoidCallback? onConfirm,
  12. VoidCallback? onCancel,
  13. String? textConfirm,
  14. String? textCancel,
  15. EdgeInsetsGeometry? padding,
  16. EdgeInsetsGeometry? contentPadding = _contentPadding,
  17. Widget? footer,
  18. ActionsPosition? actionsPosition,
})

Implementation

const TxBottomSheet({
  required this.content,
  super.key,
  this.header,
  this.title,
  this.titleSpacing,
  this.centerTitle,
  this.leading,
  this.leadingWidth,
  this.automaticallyImplyLeading = true,
  this.actions,
  this.onConfirm,
  this.onCancel,
  this.textConfirm,
  this.textCancel,
  this.padding,
  this.contentPadding = _contentPadding,
  this.footer,
  ActionsPosition? actionsPosition,
}) : actionsPosition = actionsPosition ?? ActionsPosition.header;