show<T> static method

Future<T?> show<T>({
  1. required BuildContext context,
  2. String? title,
  3. required Widget content,
  4. List<Widget>? actions,
  5. bool showCloseButton = true,
  6. Widget? titleWidget,
  7. EdgeInsetsGeometry? contentPadding,
  8. double? width,
  9. double? maxWidth,
  10. double? borderRadius,
  11. Color? backgroundColor,
  12. bool barrierDismissible = true,
})

Show the dialog

Implementation

static Future<T?> show<T>({
  required BuildContext context,
  String? title,
  required Widget content,
  List<Widget>? actions,
  bool showCloseButton = true,
  Widget? titleWidget,
  EdgeInsetsGeometry? contentPadding,
  double? width,
  double? maxWidth,
  double? borderRadius,
  Color? backgroundColor,
  bool barrierDismissible = true,
}) {
  return showDialog<T>(
    context: context,
    barrierDismissible: barrierDismissible,
    builder: (context) => TatweerBaseDialog(
      title: title,
      content: content,
      actions: actions,
      showCloseButton: showCloseButton,
      titleWidget: titleWidget,
      contentPadding: contentPadding,
      width: width,
      maxWidth: maxWidth,
      borderRadius: borderRadius,
      backgroundColor: backgroundColor,
    ),
  );
}