BottomAlertDialog.icon constructor

BottomAlertDialog.icon(
  1. {required Widget title,
  2. required Widget icon,
  3. required Widget body,
  4. required List<Widget> buttons,
  5. List<BottomAlertDialogAction>? actions,
  6. bool? closeButton}
)

Implementation

factory BottomAlertDialog.icon({
  required Widget title,
  required Widget icon,
  required Widget body,
  required List<Widget> buttons,
  List<BottomAlertDialogAction>? actions,
  bool? closeButton,
}) =>
    BottomAlertDialog._(
      closeButton: closeButton,
      buttons: buttons,
      actions: actions,
      body: (context) => Column(
        children: [
          icon,
          Padding(
            padding: const EdgeInsets.symmetric(horizontal: 20),
            child: title,
          ),
          Padding(
            padding: const EdgeInsets.only(top: 20, left: 20, right: 20),
            child: body,
          ),
        ],
      ),
    );