buildViewImage method
Implementation
Widget buildViewImage() {
return Padding(
padding: EdgeInsets.only(right: ScreenUtil().setWidth(20)),
child: image != null
? SizedBox(
width: ScreenUtil().setWidth(80),
height: ScreenUtil().setWidth(100),
child: kIsWeb
? Image.network(image!.path)
: Image.file(File(image!.path)),
)
: ModernFormViewImage(
network: imageUrl,
memory: imageMemory,
onDelete: (imageMemory != null && imageMemory!.isNotEmpty) &&
onChanged != null
? () {
onChanged!(null);
}
: null,
width: ScreenUtil().setWidth(80),
),
);
}