slideImagePostUI method
- 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,
),
);
}