All I want to change is for the image path to look for assets/images instead of web url.
The code for image widget is:
Image.network(
FFAppState()
.AppStateImageList[_model.randomInteger!]
.image,
width: MediaQuery.sizeOf(context).width * 1.0,
height: MediaQuery.sizeOf(context).height * 1.0,
fit: BoxFit.cover,
alignment: Alignment(0.0, 0.0),
Now I want to change Image.network to Image.asset, thats all. How can I do this?
Why? Because app needs to work offline so images presented must be from assets only.