errorMsg method

Future<Widget> errorMsg(
  1. BuildContext context,
  2. String error, {
  3. String? animtaion,
})

Implementation

Future<Widget> errorMsg(BuildContext context, String error, {String? animtaion}) async {
  return await dialogMessage(
    context,
    title: Lottie.asset(
      animtaion ?? "packages/event_crew/assets/animation/failed.json",
      repeat: true,
      reverse: true,
      height: 80
    ),
    content: MyText(text: error, fontWeight: FontWeight.w500, left: 10, right: 10,)
  ) ?? Container();
}