import 'package:flutter/widgets.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import '../constants/constants.dart'; class MyToast extends StatelessWidget { const MyToast(this.msg, {Key? key}) : super(key: key); final String msg; @override Widget build(BuildContext context) { return Container( padding: REdgeInsets.symmetric(horizontal: 30.0, vertical: 20.0), decoration: BoxDecoration( color: Colours.gray_33.withOpacity(0.9), borderRadius: BorderRadius.circular(9.0).r, ), child: Text(msg, style: TextStyles.mediumWhite18), ); } }