title: How to navigate from Flutter Page to Native Android Page
body: <p>In this i am creating an app in which i successfully added the flutter module in existing android app by using these links <a href="https://flutter.dev/docs/development/add-to-app" rel="nofollow noreferrer">https://flutter.dev/docs/development/add-to-app</a> , <a href="https://flutter.dev/docs/development/add-to-app/android/add-flutter-screen" rel="nofollow noreferrer">https://flutter.dev/docs/development/add-to-app/android/add-flutter-screen</a>. Here the launch screen is native android and then i added a button to navigate to flutter screen. But my question is how do i navigate from flutter screen to native android screen. Here is the code of native android and dart code. <strong>Note: I already added the flutter module dependencies in build.gradle and also added the code in settings.gradle, so i am not going to mention the code.</strong></p>
  
  <blockquote>
    <p>MainActivity.java</p>
  </blockquote>
  
  <pre><code>Button btn1;
          btn1=findViewById(R.id.button1);
          btn1.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  startActivity(FlutterActivity.createDefaultIntent(v.getContext())); //this navigate to flutter page
              }
          });
  </code></pre>
  
  <blockquote>
    <p>Main.dart</p>
  </blockquote>
  
  <pre><code>void main() =&gt; runApp(MyApp());
  class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: MyHomePage(),
      );
    }
  }
  class MyHomePage extends StatefulWidget {
    @override
    _MyHomePageState createState() =&gt; _MyHomePageState();
  }
  class _MyHomePageState extends State&lt;MyHomePage&gt; {
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(title: Text('Demo'),),
        body: Container(
          child: Center(
            child: RaisedButton(
              onPressed: (){
                //Here how do i navigate to Native Android Screen ?
              },
              child: Text('Navigate to Android'),
            ),
          ),
        ),
      );
    }
  }
  </code></pre>