errorWidgetMaker method

Widget errorWidgetMaker(
  1. dynamic response,
  2. dynamic retryListener
)

Implementation

Widget errorWidgetMaker(dynamic response, retryListener) {
  return Column(
    mainAxisAlignment: MainAxisAlignment.center,
    children: <Widget>[
      appElevatedButton(
        onPressed: retryListener,
        color: AppColors.appColorWhite,
        child: Text(
          "Retry",
          style: TextStyleElements.button
              .copyWith(color: color ?? AppColors.appTextPrimaryColor),
        ),
      )
    ],
  );
}