show static method

Future<bool> show({
  1. required BuildContext context,
  2. required String title,
  3. required List<Widget> content,
  4. bool useInternalScroll = false,
  5. bool persistent = false,
  6. double padding = 20,
  7. double width = 400,
  8. double? height,
  9. List<Widget>? titleActions,
})

Implementation

static Future<bool> show({
  required BuildContext context,
  required String title,
  required List<Widget> content,
  bool useInternalScroll = false,
  bool persistent = false,
  double padding = 20,
  double width = 400,
  double? height,
  List<Widget>? titleActions,
}) async {
  return true == await showDialog(
    context: context,
    barrierColor: Colors.transparent,
    builder: (BuildContext context) => ADialog(
      title: title,
      titleActions: titleActions,
      content: content,
      persistent: persistent,
      padding: padding,
      width: width,
      useInternalScroll: useInternalScroll,
      height: height,
    ),
  );
}