myButton

addOnClickListener

new

OnClickListener

()

@Override

public

void

onClick

View

startActivity

FlutterActivity

withNewEngine

()

initialRoute

"/my_route"

build

currentActivity

);

});

myButton

setOnClickListener

startActivity

FlutterActivity

withNewEngine

()

initialRoute

"/my_route"

build

this

Replace "/my_route" with your desired initial route.