dreampad/lib/app/shared/widgets/my_toast.dart

23 lines
617 B
Dart
Raw Permalink Normal View History

2023-11-28 10:44:58 +08:00
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),
);
}
}