onPressed:

()

Navigator

of

context

push

MaterialPageRoute

builder:

context

const

SongScreen

song:

song

),

),

);

},

child:

Text

song

name

),

navigation recipes from the Flutter Cookbook or visit the

Navigator API
documentation.

Using named routes

Note:
  We don’t recommend using named routes for most applications.
  For more information, see the Limitations section below.

Applications with simple navigation and deep linking requirements can use the
Navigator for navigation and the MaterialApp.routes parameter for deep
links:

@override