CommonSnackBar.info constructor
CommonSnackBar.info({
- Key? key,
- required BuildContext context,
- required String text,
- SnackBarAction? action,
Implementation
CommonSnackBar.info({
super.key,
required BuildContext context,
required String text,
super.action,
}) : super(
content: Row(
children: [
Icon(Icons.info_outline, size: 24, color: Colors.black),
SizedBox(width: 8),
Expanded(
child: Text(
text,
style: context.textTheme.bodyMedium?.copyWith(
color: Colors.black,
),
),
),
],
),
backgroundColor: Colors.black45,
margin: const EdgeInsets.only(left: 20, right: 20, bottom: 32),
padding: const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
behavior: SnackBarBehavior.floating,
);