getMainView method
Implementation
Widget getMainView( Map<String, dynamic> data,String tableName) {
var dataReponse = Methods.getList(data['data'], tableName);
if(dataReponse.isNotEmpty) {
return Container(
height: 230,
decoration: BoxDecoration(
image: DecorationImage(
image: NetworkImage(Methods.getURL(Methods.getString(
dataReponse[0], 'hinhAnh_image_path'
))),
fit: BoxFit.fill)),
);
} else {
return Container();
}
}