getRetryWidget method

Widget getRetryWidget()

Implementation

Widget getRetryWidget() {
  var defaultRetryButton = TextButton(
    style: ButtonStyle(
        foregroundColor: MaterialStateProperty.all(Colors.grey[300]),
        shape: MaterialStateProperty.all(const CircleBorder())),
    onPressed: _effectiveController?.retry,
    child: const Icon(
      Icons.refresh,
      color: Colors.white,
    ),
  );

  return getStandardContainer(
      child: widget.retryBuilder != null
          ? widget.retryBuilder
              ?.call(context, _effectiveController?.retry ?? () {})
          : defaultRetryButton);
}