I want to show an Image but only a cropped part of it, zoomed in.
This is how it looks right now:
and this is how I want it to look:
I want the background image
to be zoomed in.
I use flutter_gen_runner
to be able to use Assets easily.
This is my code to show the image:
Assets.spotifai.defaultArtist.image(
fit: BoxFit.cover,
),
I tried using the alignment
and scale
attribute, but couldn't achieve what I want with that.
What is the canonical way to do this?