content: import 'package:flutter/material.dart';
  
  class RSToast {
    static void show(
      BuildContext context, {
      required String message,
      Duration duration = const Duration(seconds: 3),
      Color backgroundColor = Colors.black87,
      Color textColor = Colors.white,
      double fontSize = 14.0,
      double borderRadius = 8.0,
      EdgeInsets padding =
          const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
    }) {
      final overlay = Overlay.of(context);
  
      final overlayEntry = OverlayEntry(
        builder: (context) => Positioned(
          bottom: 50,
          left: MediaQuery.of(context).size.width * 0.1,
          right: MediaQuery.of(context).size.width * 0.1,
          child: Material(
            color: Colors.transparent,
            child: Center(
              child: Container(
                padding: padding,
                decoration: BoxDecoration(
                  color: backgroundColor,
                  borderRadius: BorderRadius.circular(borderRadius),
                ),
                child: Text(
                  message,
                  style: TextStyle(color: textColor, fontSize: fontSize),
                  textAlign: TextAlign.center,
                ),
              ),
            ),
          ),
        ),
      );
  
      overlay.insert(overlayEntry);
  
      Future.delayed(duration, () {
        overlayEntry.remove();
      });
    }
  }
  