mirrored_repositories/Oshops-app/lib
import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

class ToastConstant {
  static var fToast = FToast();
  static showToast(BuildContext context, String? message) {
    fToast.init(context);
    fToast.showToast(
      child: Container(
        decoration: BoxDecoration(
            color: Colors.green, borderRadius: BorderRadius.circular(30)),
        child: Row(
          mainAxisSize: MainAxisSize.min,
          children: [
            Padding(
              padding: const EdgeInsets.all(9.0),
              child: Text(
                message!,
                style: TextStyle(fontSize: 16, color: Colors.white),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
