showMySnackBar method
Implementation
void showMySnackBar(String title, String subtitle) {
final mySnackBar = SnackBar(
dismissDirection: DismissDirection.down,
duration: const Duration(seconds: 3),
backgroundColor: StepperColors.yellowSoft,
content: Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
title,
style: const TextStyle(
color: StepperColors.black, fontWeight: FontWeight.w800),
),
const SizedBox(
height: 10,
),
Text(
subtitle,
style: const TextStyle(
color: StepperColors.black, fontWeight: FontWeight.w400),
)
],
),
behavior: SnackBarBehavior.floating,
margin: EdgeInsets.only(
bottom: MediaQuery.of(context).size.height / 11, left: 22, right: 22),
);
ScaffoldMessenger.of(context).showSnackBar(mySnackBar);
}