Right now I am trying to delete data and when I am done delete it. It should be going to the homepage. The issue here is when I am using the navigator to the homepage. The user_id returns null instead of it should be showing the real user_id. How can I manage the flow of content?
Code that I use to go back 2 pages before.
new RaisedButton(
child: new Text("OK DELETE!",style: TextStyle(color: Colors.black),),
color: Colors.red,
onPressed: (){
deleteData();
Navigator.of(context).push(
MaterialPageRoute(
builder: (BuildContext context)=> OwnerPage())
);
},
),
The image on before deleting occur:
The image on after deleting occur:
For additional information. From the login page to the home page, I am using this type of code:


