const PictureViewer({ Key? key, required this.messages, required this.showIndex, this.isDialog = false, }) : super(key: key);