import 'package:flutter/material.dart'; // Widget para mostrar mensajes de error Widget alertDanger(String message) { return Container( width: double.infinity, padding: const EdgeInsets.all(8.0), child: Row( children: [ const Icon( Icons.error, color: Colors.white, ), const SizedBox( width: 10.0, ), Expanded( child: Text( message, style: const TextStyle(color: Colors.red), ), ) ], ), ); } // Widget para mostrar mensajes de éxito Widget alertSuccess(String message) { return Container( width: double.infinity, padding: const EdgeInsets.all(8.0), child: Row( children: [ const Icon( Icons.check_circle_outline, color: Colors.white, ), const SizedBox( width: 10.0, ), Expanded( child: Text( message, style: const TextStyle(color: Colors.lightGreen), ), ) ], ), ); } // Widget para mostrar mensajes de espera Widget alertWait(String message) { return Container( width: double.infinity, padding: const EdgeInsets.all(8.0), child: Row( children: [ const Icon( Icons.info, color: Colors.white, ), const SizedBox( width: 10.0, ), Expanded( child: Text( message, style: const TextStyle(color: Colors.lightBlueAccent), ), ) ], ), ); }