getBackButton method
Implementation
Widget getBackButton(BuildContext context, CometChatTheme theme) {
if (hideBackButton != true) {
Widget backButton;
backButton = GestureDetector(
onTap: onBack ??
() {
Navigator.pop(context);
},
child: Image.asset(
AssetConstants.back,
package: UIConstants.packageName,
color: messageHeaderStyle.backButtonIconTint ??
theme.palette.getPrimary(),
),
);
return Padding(
padding: const EdgeInsets.only(left: 20.0), child: backButton);
} else {
return const SizedBox(
height: 0,
width: 0,
);
}
}