getLoadingIndicator method

Widget getLoadingIndicator(
  1. BuildContext context,
  2. CometChatTheme theme
)

getLoadingIndicator is a widget which is used to show the loading indicator

Implementation

Widget getLoadingIndicator(BuildContext context, CometChatTheme theme) {
  if (showLoadingIndicator != false) {
    return Container(
      alignment: Alignment.center,
      height: 48,
      child: Image.asset(
        AssetConstants.spinner,
        package: UIConstants.packageName,
        color: theme.palette.getAccent600(),
      ),
    );
  } else {
    return const SizedBox();
  }
}