You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
646B

  1. import 'package:flutter/material.dart';
  2. class WidgetToast extends StatelessWidget {
  3. String message;
  4. WidgetToast({@required this.message});
  5. @override
  6. Widget build(BuildContext context) {
  7. return Container(
  8. padding: const EdgeInsets.symmetric(horizontal: 24.0, vertical: 12.0),
  9. decoration: BoxDecoration(
  10. borderRadius: BorderRadius.circular(25.0),
  11. color: Colors.greenAccent,
  12. ),
  13. child: Row(
  14. mainAxisSize: MainAxisSize.min,
  15. children: [
  16. Icon(Icons.check),
  17. SizedBox(
  18. width: 12.0,
  19. ),
  20. Text(message),
  21. ],
  22. ),
  23. );
  24. }
  25. }