I have created an Homepage and from that user can sign in for the app and in the next screen user can see their profile info(Only profile name) and under that their is signO
you can create another logout() function and give context of home to push back to sign in screen/home screen , works for me as :
logout() async { await googleSignIn.signOut(); Navigator.push(context, MaterialPageRoute(builder: (context) => Home())); }