openImageInFullScreenMode method

dynamic openImageInFullScreenMode(
  1. String? imageUrl,
  2. CometChatTheme theme,
  3. BuildContext context
)

Implementation

openImageInFullScreenMode(
    String? imageUrl, CometChatTheme theme, BuildContext context) {
  if (imageUrl != null || imageUrl!.isNotEmpty) {
    Navigator.push(
        context,
        MaterialPageRoute(
            builder: (context) => ImageViewer(
                  imageUrl: imageUrl,
                  backgroundColor: theme.palette.getBackground(),
                  backIconColor: theme.palette.getPrimary(),
                )));
    debugPrint('thumbnail on click');
  }
}