showToast function
void
showToast({
- required dynamic message,
Implementation
void showToast({required message}){
showSimpleNotification(
Container(
margin: const EdgeInsets.only(bottom: 40, left: 120, right: 120),
height: 40,
width: 30,
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
color: hexToColor(paymentIconBlueBackgroundColor),
borderRadius: BorderRadius.circular(36)
),
child: Center(
child: Text(
message,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: blackTextStyle.copyWith(
color: hexToColor(paymentBlueBackgroundColor),
fontSize: 14,
fontWeight: FontWeight.w400
),),
),
),
background: Colors.white54.withOpacity(0.1),
elevation: 0,
position: NotificationPosition.bottom
);
}