bytes_image_viewer 0.0.1
bytes_image_viewer: ^0.0.1 copied to clipboard
This image viewer, takes the url which returns the bytes as image. You can implement it with autherization factor.
This is a very simple widget. You can use it when: Your GET IMAGE API returns Uint8List.
Features #
No need to write api calling and then pass the result to any other image viewer.
Usage #
please find the example here /example.
CustomImageViewer(
height:100, //optional
width:100,//optional
fit: BoxFit.cover,//optional
apiUrl:'image url',
headers: {
"Authorization":
"Bearer yTiIsInN1YiI6IjEiLC"
}, //optional
loadingWidget: CircularProgressIndicator(
color: Colors.red,
)
);
Additional information #
Will be updated soon.