I have this certain issue so there is a URL in my flutter app where,
String URL = "www.abcd/page=$number";
int number = 1;
And a button with onTap where,
Inkwell(child:Container(child: Text("Next")),
onTap :()=> setState({
number++)}
Sorry I typed those codes manually maybe there is some syntax error. So basically I want the user to tap on the next button the page number in the link increases by 1, but I want to iterate an 'if' function, when number> 1 then show a button where the page decrements by one and if number<1 then I don't want the container to show.
So is there any way to achieve it?

