getLoadingIndicator method
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();
}
}