return InkWell(
onTap: () => { if(1==0){
Navigator.push(
context,
MaterialPageRoute(
builder: (BuildContext context) =>
ImageScreen(
url: widget.userbio.resimler![index].toString(),
),
),),
}},
child: Image.network(
widget.userbio.resimler![index].toString(),
fit: BoxFit.cover,
)
);
hello all stackoverflow users, ı need help for this. how can i add if here
child: Image.network(widget.userbio.resimler![index].toString(),fit: BoxFit.cover,
If you have any other suggestions for me to solve such problems, please do.
2
Answers
You can try this:
here if
condition
betrue
,Image
would be build, if befalse
,SizedBox
would be build.You can do something like below
OR