openTache function

Future<void> openTache(
  1. dynamic context,
  2. dynamic user
)

Implementation

Future<void> openTache(context, user) async {
  bool? isDeleted = await showDialog(
    barrierDismissible: true,
    context: context,
    builder:
        (context) => AlertDialog(
          title: const Text(
            "Tache",
            style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold),
            textAlign: TextAlign.center,
          ),
          content: Text(user.tache),
        ),
  );
}