buildNotification static method

Widget buildNotification({
  1. Key? key,
  2. required String title,
  3. required String body,
  4. required Size dialogSize,
  5. required VoidCallback logout,
})

Implementation

static Widget buildNotification({
  Key? key,
  required String title,
  required String body,
  required Size dialogSize,
  required VoidCallback logout,
}) {
  return SizedBox(
    width: dialogSize.width + 40, // card margins (4*2) + padding (16*2)
    height: dialogSize.height + 40, // card margins (4*2) + padding (16*2)
    child: Card(
      child: Padding(
        padding: const EdgeInsets.all(16.0),
        child: BootstrapNotification._(
          key: key,
          title: title,
          body: body,
          dialogSize: dialogSize,
          logout: logout,
        ),
      ),
    ),
  );
}