I have two screens, where
First: Listing of data from Firebase
Second: Add data in that screen so I want to comeback to first screen,
Everything working fine only there was a black screen when I go back.
Now issue was gone, I have searched for how it works but its still not clear my concept about this, Can any one describe how it works?
Before:
return new MaterialApp(
title: "AddEditNames ",
home: new AddEditNameScreen(),
);
After:当我把它换成
return new Scaffold(
backgroundColor: Color.fromRGBO(30, 30, 30, 1.0),
body: new AddEditNameScreen(),
appBar: new AppBar(
elevation: 0.0,
backgroundColor: Colors.blueAccent,
actions: <Widget>[
],
title: new Text(
"AddEditNames",
style: new TextStyle(color: Colors.white),
),
centerTitle: true,
),
);