slideImagePostUI method

dynamic slideImagePostUI(
  1. dynamic context
)

Implementation

Widget slideImagePostUI(BuildContext context) {
  final imageFile = selectedNewsPost!.mediaFile;
  return Container(
    alignment: Alignment.center,
    color: selectedNewsPost!.backgroundColor,
    child: Image.file(
      File(imageFile!.path),
      fit: BoxFit.contain,
    ),
  );
}