import 'package:flutter/material.dart'; class Body extends StatelessWidget { @override Widget build(BuildContext context) { return Center( child: RaisedButton( onPressed: () { // Back (popping) // Navigator.pop(context); // Go to Login Screen Navigator.pushNamed(context, '/Login'); }, child: Text('Login'), ), ); } }