27 lines
740 B
Dart
27 lines
740 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class CustomToast extends StatelessWidget {
|
|
final String msg;
|
|
const CustomToast({Key? key, required this.msg}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
margin:
|
|
EdgeInsets.only(bottom: MediaQuery.of(context).padding.bottom + 30),
|
|
padding: const EdgeInsets.symmetric(horizontal: 17, vertical: 10),
|
|
decoration: BoxDecoration(
|
|
color: Theme.of(context).colorScheme.primaryContainer,
|
|
borderRadius: BorderRadius.circular(20),
|
|
),
|
|
child: Text(
|
|
msg,
|
|
style: TextStyle(
|
|
fontSize: 13,
|
|
color: Theme.of(context).colorScheme.primary,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|