xxxxxxxxxx
Send the String "hello" To SecondScreen like in this
FirstScreenPage Do NAvigator push and send the string:
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => SecondScreen(text: 'Hello',),
));
Recieve the Text from FirstScreen page:
class SecondScreen extends StatelessWidget {
final String text;
// receive data from the FirstScreen as a parameter
SecondScreen({Key key, @required this.text}) : super(key: key);
@override
NOw show the text in the UI thats all send the basic data from one page to another page