buildNotification static method
Widget
buildNotification({
- Key? key,
- required String title,
- required String body,
- required Size dialogSize,
- 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,
),
),
),
);
}